-
Notifications
You must be signed in to change notification settings - Fork 30.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
custom 'html' tags are in red color. Fixes #56467
- Loading branch information
Showing
7 changed files
with
576 additions
and
484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"information_for_contributors": [ | ||
"This file has been converted from https://github.com/textmate/html.tmbundle/blob/master/Syntaxes/HTML%20%28Derivative%29.tmLanguage", | ||
"If you want to provide a fix or improvement, please create a pull request against the original repository.", | ||
"Once accepted there, we are happy to receive an update request." | ||
], | ||
"version": "https://github.com/textmate/html.tmbundle/commit/390c8870273a2ae80244dae6db6ba064a802f407", | ||
"name": "HTML (Derivative)", | ||
"scopeName": "text.html.derivative", | ||
"injections": { | ||
"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)": { | ||
"comment": "Uses R: to ensure this matches after any other injections.", | ||
"patterns": [ | ||
{ | ||
"match": "<", | ||
"name": "invalid.illegal.bad-angle-bracket.html" | ||
} | ||
] | ||
} | ||
}, | ||
"patterns": [ | ||
{ | ||
"include": "text.html.basic#core-minus-invalid" | ||
}, | ||
{ | ||
"begin": "(</?)(\\w[^\\s>]*)(?<!/)", | ||
"beginCaptures": { | ||
"1": { | ||
"name": "punctuation.definition.tag.begin.html" | ||
}, | ||
"2": { | ||
"name": "entity.name.tag.html" | ||
} | ||
}, | ||
"end": "((?: ?/)?>)", | ||
"endCaptures": { | ||
"1": { | ||
"name": "punctuation.definition.tag.end.html" | ||
} | ||
}, | ||
"name": "meta.tag.other.unrecognized.html.derivative", | ||
"patterns": [ | ||
{ | ||
"include": "text.html.basic#attribute" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
cfc2a22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aeschli Could we also get this for php?
cfc2a22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adamk33n3r Please file a separate issue with a small code sample...