euv_cli/fmt/const.rs
1/// The euv macro name for `html!`.
2pub const MACRO_NAME_HTML: &str = "html";
3
4/// The euv macro name for `class!`.
5pub const MACRO_NAME_CLASS: &str = "class";
6
7/// The euv macro name for `vars!`.
8pub const MACRO_NAME_VARS: &str = "vars";
9
10/// The euv macro name for `watch!`.
11pub const MACRO_NAME_WATCH: &str = "watch";
12
13/// The euv macro names that should be formatted.
14pub const EUV_MACRO_NAMES: &[&str] = &[
15 MACRO_NAME_HTML,
16 MACRO_NAME_CLASS,
17 MACRO_NAME_VARS,
18 MACRO_NAME_WATCH,
19];
20
21/// The Rust `if` keyword string.
22pub const KEYWORD_IF: &str = "if";
23
24/// The Rust `else` keyword string.
25pub const KEYWORD_ELSE: &str = "else";
26
27/// The Rust `match` keyword string.
28pub const KEYWORD_MATCH: &str = "match";
29
30/// The Rust `for` keyword string.
31pub const KEYWORD_FOR: &str = "for";
32
33/// The Rust `in` keyword string.
34pub const KEYWORD_IN: &str = "in";
35
36/// The Rust fat arrow operator string.
37pub const ARROW_FAT: &str = "=>";
38
39/// The directory name to skip when scanning for Rust source files (Rust build output).
40pub const TARGET_DIR_NAME: &str = "target";
41
42/// The directory name to skip when scanning for Rust source files (Node.js dependencies).
43pub const NODE_MODULES_DIR_NAME: &str = "node_modules";
44
45/// The Rust source file extension.
46pub const RS_EXTENSION: &str = "rs";
47
48/// The exclamation mark character used to identify macro invocations.
49pub const CHAR_MACRO_BANG: char = '!';
50
51/// The left brace character used to delimit code blocks and macro bodies.
52pub const CHAR_BRACE_LEFT: char = '{';
53
54/// The right brace character used to delimit code blocks and macro bodies.
55pub const CHAR_BRACE_RIGHT: char = '}';
56
57/// The left parenthesis character, used in CSS functional pseudo-class detection.
58pub const CHAR_LEFT_PAREN: char = '(';
59
60/// The right parenthesis character, used in CSS functional pseudo-class detection.
61pub const CHAR_RIGHT_PAREN: char = ')';
62
63/// The double quote character used to delimit string literals.
64pub const CHAR_DOUBLE_QUOTE: char = '"';
65
66/// The single quote character used to delimit character and string literals.
67pub const CHAR_SINGLE_QUOTE: char = '\'';
68
69/// The forward slash character used in comment and path detection.
70pub const CHAR_SLASH_FORWARD: char = '/';
71
72/// The forward slash string used in path normalization.
73pub const STR_SLASH_FORWARD: &str = "/";
74
75/// The backslash character used as escape prefix in string literals.
76pub const CHAR_SLASH_BACK: char = '\\';
77
78/// The underscore character, part of Rust identifiers.
79pub const CHAR_UNDERSCORE: char = '_';
80
81/// The hash character, used in raw identifier prefix detection.
82pub const CHAR_HASH: char = '#';
83
84/// The hyphen character, used in CSS selector identifier detection.
85pub const CHAR_HYPHEN: char = '-';
86
87/// The newline character.
88pub const CHAR_NEWLINE: char = '\n';
89
90/// The carriage return character.
91pub const CHAR_CARRIAGE_RETURN: char = '\r';
92
93/// The tab character.
94pub const CHAR_TAB: char = '\t';
95
96/// The space character.
97pub const CHAR_SPACE: char = ' ';
98
99/// The asterisk character, used in block comment end detection.
100pub const CHAR_ASTERISK: char = '*';
101
102/// The colon character, used in attribute separator formatting.
103pub const CHAR_COLON: char = ':';
104
105/// The equals sign character, used in fat arrow detection.
106pub const CHAR_EQUALS: char = '=';
107
108/// The greater-than character, used in fat arrow detection.
109pub const CHAR_GREATER_THAN: char = '>';
110
111/// The block comment start delimiter.
112pub const BLOCK_COMMENT_START: &str = "/*";
113
114/// The raw identifier prefix string.
115pub const RAW_IDENT_PREFIX: &str = "r#";
116
117/// The letter `a`, used in keyword detection.
118pub const CHAR_LETTER_A: char = 'a';
119
120/// The letter `c`, used in keyword detection.
121pub const CHAR_LETTER_C: char = 'c';
122
123/// The letter `e`, used in keyword detection.
124pub const CHAR_LETTER_E: char = 'e';
125
126/// The letter `f`, used in keyword detection.
127pub const CHAR_LETTER_F: char = 'f';
128
129/// The letter `h`, used in keyword detection.
130pub const CHAR_LETTER_H: char = 'h';
131
132/// The letter `i`, used in keyword detection.
133pub const CHAR_LETTER_I: char = 'i';
134
135/// The letter `l`, used in keyword detection.
136pub const CHAR_LETTER_L: char = 'l';
137
138/// The letter `m`, used in keyword detection.
139pub const CHAR_LETTER_M: char = 'm';
140
141/// The letter `n`, used in keyword detection.
142pub const CHAR_LETTER_N: char = 'n';
143
144/// The letter `o`, used in keyword detection.
145pub const CHAR_LETTER_O: char = 'o';
146
147/// The letter `r`, used in keyword detection.
148pub const CHAR_LETTER_R: char = 'r';
149
150/// The letter `s`, used in keyword detection.
151pub const CHAR_LETTER_S: char = 's';
152
153/// The comma character.
154pub const CHAR_COMMA: char = ',';
155
156/// The semicolon character.
157pub const CHAR_SEMICOLON: char = ';';
158
159/// The letter `t`, used in keyword detection.
160pub const CHAR_LETTER_T: char = 't';