Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
Attrs with hyphens are not special
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-steele-idem committed Nov 9, 2017
1 parent 67a9a48 commit c0e8957
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions grammars/marko.cson
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ repository:
begin: "(?:\\s+|[,])(?:(ref)|([a-zA-Z][a-zA-Z]*)|(data-[a-zA-Z0-9-]*)|([_a-zA-Z0-9][a-zA-Z0-9:_.-]*))\\s*([=])\\s*"
beginCaptures:
"1":
name: "support.function.marko-attribute"
name: "entity.other.attribute-name.html"
"2":
name: "entity.other.attribute-name.html"
"3":
name: "entity.other.attribute-name.html"
"4":
name: "support.function.marko-attribute"
name: "entity.other.attribute-name.html"
"5":
name: "punctuation.separator.key-value.html"
end: "(?=[,;]|\\s|/>|>)"
Expand Down Expand Up @@ -115,7 +115,7 @@ repository:
"2":
name: "entity.other.attribute-name.html"
"3":
name: "support.function.marko-attribute"
name: "entity.other.attribute-name.html"
match: "\\s+(?:([a-zA-Z][a-zA-Z]*)|(data-[a-zA-Z0-9-]*)|([a-zA-Z0-9][a-zA-Z0-9:_.-]+))(?=\\s|/>|>|$)"
"attr-semicolon":
applyEndPatternLast: 1
Expand Down Expand Up @@ -503,7 +503,7 @@ repository:
}
]
"expression-hex":
match: "\\b0[xX]\\h+\\b"
match: "\\b0[xX][0-9A-Fa-f]+\\b"
name: "constant.numeric.hex.js"
"expression-no-gt":
comment: "A JavaScript expression"
Expand Down Expand Up @@ -558,7 +558,7 @@ repository:
name: "string.quoted.double.js"
patterns: [
{
match: "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)"
match: "\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)"
name: "constant.character.escape.js"
}
{
Expand All @@ -568,7 +568,7 @@ repository:
"expression-string-escapes":
patterns: [
{
match: "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)"
match: "\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)"
name: "constant.character.escape.js"
}
]
Expand Down

0 comments on commit c0e8957

Please sign in to comment.