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