Skip to content

Commit

Permalink
Fix #40 - don't detect <?hh syntax in strings (or anywhere else rea…
Browse files Browse the repository at this point in the history
…lly)
  • Loading branch information
PranayAgarwal committed Feb 19, 2019
1 parent 5ef3ec0 commit daa1e6a
Showing 1 changed file with 0 additions and 120 deletions.
120 changes: 0 additions & 120 deletions syntaxes/hack.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,126 +8,6 @@
],
"foldingStartMarker": "(/\\*|\\{\\s*$|<<<HTML)",
"foldingStopMarker": "(\\*/|^\\s*\\}|^HTML;)",
"injections": {
"source.hack - (meta.embedded | meta.tag), L:source.hack meta.tag, L:source.js.embedded.html": {
"patterns": [
{
"begin": "(^\\s*)(?=<\\?(?![^?]*\\?>))",
"beginCaptures": {
"0": {
"name": "punctuation.whitespace.embedded.leading.php"
}
},
"end": "(?!\\G)(\\s*$\\n)?",
"endCaptures": {
"0": {
"name": "punctuation.whitespace.embedded.trailing.php"
}
},
"patterns": [
{
"begin": "<\\?(?i:php|=)?",
"beginCaptures": {
"0": {
"name": "punctuation.section.embedded.begin.php"
}
},
"contentName": "source.hack",
"end": "(\\?)>",
"endCaptures": {
"0": {
"name": "punctuation.section.embedded.end.php"
},
"1": {
"name": "source.hack"
}
},
"name": "meta.embedded.block.php",
"patterns": [
{
"include": "#language"
}
]
}
]
},
{
"begin": "<\\?(?i:php|=)?(?![^?]*\\?>)",
"beginCaptures": {
"0": {
"name": "punctuation.section.embedded.begin.php"
}
},
"contentName": "source.hack",
"end": "(\\?)>",
"endCaptures": {
"0": {
"name": "punctuation.section.embedded.end.php"
},
"1": {
"name": "source.hack"
}
},
"name": "meta.embedded.block.php",
"patterns": [
{
"include": "#language"
}
]
},
{
"begin": "<\\?(?i:php|=)?",
"beginCaptures": {
"0": {
"name": "punctuation.section.embedded.begin.php"
}
},
"end": ">",
"endCaptures": {
"0": {
"name": "punctuation.section.embedded.end.php"
}
},
"name": "meta.embedded.line.php",
"patterns": [
{
"captures": {
"1": {
"name": "source.hack"
},
"2": {
"name": "punctuation.section.embedded.end.php"
},
"3": {
"name": "source.hack"
}
},
"match": "\\G(\\s*)((\\?))(?=>)",
"name": "meta.special.empty-tag.php"
},
{
"begin": "\\G",
"contentName": "source.hack",
"end": "(\\?)(?=>)",
"endCaptures": {
"0": {
"name": "punctuation.section.embedded.end.php"
},
"1": {
"name": "source.hack"
}
},
"patterns": [
{
"include": "#language"
}
]
}
]
}
]
}
},
"patterns": [
{
"include": "text.html.basic"
Expand Down

0 comments on commit daa1e6a

Please sign in to comment.