Skip to content

Commit 108115d

Browse files
authored
Support complex expression in CSS v-bind() (#143)
* Support complex expression in CSS `v-bind()` * fix * add comments
1 parent 8a0a474 commit 108115d

File tree

12 files changed

+4614
-234
lines changed

12 files changed

+4614
-234
lines changed

.eslintrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ overrides:
514514
- error
515515
no-sequences:
516516
- error
517-
no-shadow:
517+
"@typescript-eslint/no-shadow":
518518
- error
519519
- builtinGlobals: true
520520
hoist: functions

src/html/util/unicode.ts

+22-17
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,39 @@ export const CARRIAGE_RETURN = 0x0D
1111
export const LINE_FEED = 0x0A
1212
export const FORM_FEED = 0x0C
1313
export const SPACE = 0x20
14-
export const EXCLAMATION_MARK = 0x21
15-
export const QUOTATION_MARK = 0x22
16-
export const NUMBER_SIGN = 0x23
17-
export const AMPERSAND = 0x26
18-
export const APOSTROPHE = 0x27
19-
export const HYPHEN_MINUS = 0x2D
20-
export const SOLIDUS = 0x2F
14+
export const EXCLAMATION_MARK = 0x21 // !
15+
export const QUOTATION_MARK = 0x22 // "
16+
export const NUMBER_SIGN = 0x23 // #
17+
export const AMPERSAND = 0x26 // &
18+
export const APOSTROPHE = 0x27 // '
19+
export const LEFT_PARENTHESIS = 0x28 // (
20+
export const RIGHT_PARENTHESIS = 0x29 // )
21+
export const ASTERISK = 0x2A // *
22+
export const HYPHEN_MINUS = 0x2D // -
23+
export const SOLIDUS = 0x2F // /
2124
export const DIGIT_0 = 0x30
2225
export const DIGIT_9 = 0x39
23-
export const SEMICOLON = 0x3B
24-
export const LESS_THAN_SIGN = 0x3C
25-
export const EQUALS_SIGN = 0x3D
26-
export const GREATER_THAN_SIGN = 0x3E
27-
export const QUESTION_MARK = 0x3F
26+
export const COLON = 0x3a // :
27+
export const SEMICOLON = 0x3B // ;
28+
export const LESS_THAN_SIGN = 0x3C // <
29+
export const EQUALS_SIGN = 0x3D // =
30+
export const GREATER_THAN_SIGN = 0x3E // >
31+
export const QUESTION_MARK = 0x3F // ?
2832
export const LATIN_CAPITAL_A = 0x41
2933
export const LATIN_CAPITAL_D = 0x44
3034
export const LATIN_CAPITAL_F = 0x46
3135
export const LATIN_CAPITAL_X = 0x58
3236
export const LATIN_CAPITAL_Z = 0x5A
33-
export const LEFT_SQUARE_BRACKET = 0x5B
34-
export const RIGHT_SQUARE_BRACKET = 0x5D
35-
export const GRAVE_ACCENT = 0x60
37+
export const LEFT_SQUARE_BRACKET = 0x5B // [
38+
export const REVERSE_SOLIDUS = 0x5C // \
39+
export const RIGHT_SQUARE_BRACKET = 0x5D // ]
40+
export const GRAVE_ACCENT = 0x60 // `
3641
export const LATIN_SMALL_A = 0x61
3742
export const LATIN_SMALL_F = 0x66
3843
export const LATIN_SMALL_X = 0x78
3944
export const LATIN_SMALL_Z = 0x7A
40-
export const LEFT_CURLY_BRACKET = 0x7B
41-
export const RIGHT_CURLY_BRACKET = 0x7D
45+
export const LEFT_CURLY_BRACKET = 0x7B // {
46+
export const RIGHT_CURLY_BRACKET = 0x7D // }
4247
export const NULL_REPLACEMENT = 0xFFFD
4348

4449
/**

0 commit comments

Comments
 (0)