Skip to content

Commit

Permalink
Support complex expression in CSS v-bind() (#143)
Browse files Browse the repository at this point in the history
* Support complex expression in CSS `v-bind()`

* fix

* add comments
  • Loading branch information
ota-meshi committed Jan 24, 2022
1 parent 8a0a474 commit 108115d
Show file tree
Hide file tree
Showing 12 changed files with 4,614 additions and 234 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.yml
Expand Up @@ -514,7 +514,7 @@ overrides:
- error
no-sequences:
- error
no-shadow:
"@typescript-eslint/no-shadow":
- error
- builtinGlobals: true
hoist: functions
Expand Down
39 changes: 22 additions & 17 deletions src/html/util/unicode.ts
Expand Up @@ -11,34 +11,39 @@ export const CARRIAGE_RETURN = 0x0D
export const LINE_FEED = 0x0A
export const FORM_FEED = 0x0C
export const SPACE = 0x20
export const EXCLAMATION_MARK = 0x21
export const QUOTATION_MARK = 0x22
export const NUMBER_SIGN = 0x23
export const AMPERSAND = 0x26
export const APOSTROPHE = 0x27
export const HYPHEN_MINUS = 0x2D
export const SOLIDUS = 0x2F
export const EXCLAMATION_MARK = 0x21 // !
export const QUOTATION_MARK = 0x22 // "
export const NUMBER_SIGN = 0x23 // #
export const AMPERSAND = 0x26 // &
export const APOSTROPHE = 0x27 // '
export const LEFT_PARENTHESIS = 0x28 // (
export const RIGHT_PARENTHESIS = 0x29 // )
export const ASTERISK = 0x2A // *
export const HYPHEN_MINUS = 0x2D // -
export const SOLIDUS = 0x2F // /
export const DIGIT_0 = 0x30
export const DIGIT_9 = 0x39
export const SEMICOLON = 0x3B
export const LESS_THAN_SIGN = 0x3C
export const EQUALS_SIGN = 0x3D
export const GREATER_THAN_SIGN = 0x3E
export const QUESTION_MARK = 0x3F
export const COLON = 0x3a // :
export const SEMICOLON = 0x3B // ;
export const LESS_THAN_SIGN = 0x3C // <
export const EQUALS_SIGN = 0x3D // =
export const GREATER_THAN_SIGN = 0x3E // >
export const QUESTION_MARK = 0x3F // ?
export const LATIN_CAPITAL_A = 0x41
export const LATIN_CAPITAL_D = 0x44
export const LATIN_CAPITAL_F = 0x46
export const LATIN_CAPITAL_X = 0x58
export const LATIN_CAPITAL_Z = 0x5A
export const LEFT_SQUARE_BRACKET = 0x5B
export const RIGHT_SQUARE_BRACKET = 0x5D
export const GRAVE_ACCENT = 0x60
export const LEFT_SQUARE_BRACKET = 0x5B // [
export const REVERSE_SOLIDUS = 0x5C // \
export const RIGHT_SQUARE_BRACKET = 0x5D // ]
export const GRAVE_ACCENT = 0x60 // `
export const LATIN_SMALL_A = 0x61
export const LATIN_SMALL_F = 0x66
export const LATIN_SMALL_X = 0x78
export const LATIN_SMALL_Z = 0x7A
export const LEFT_CURLY_BRACKET = 0x7B
export const RIGHT_CURLY_BRACKET = 0x7D
export const LEFT_CURLY_BRACKET = 0x7B // {
export const RIGHT_CURLY_BRACKET = 0x7D // }
export const NULL_REPLACEMENT = 0xFFFD

/**
Expand Down

0 comments on commit 108115d

Please sign in to comment.