Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #291 from atom/wl-infinite-injection-loop
Browse files Browse the repository at this point in the history
Remove potential zero-width injection pattern
  • Loading branch information
Wliu authored Oct 19, 2017
2 parents 3e21c92 + 71231bf commit 28fb4f8
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions grammars/php.cson
Original file line number Diff line number Diff line change
Expand Up @@ -40,37 +40,6 @@
'injections':
'text.html.php - (meta.embedded | meta.tag), L:text.html.php 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.php'
'end': '(\\?)>'
'endCaptures':
'0':
'name': 'punctuation.section.embedded.end.php'
'1':
'name': 'source.php'
'name': 'meta.embedded.block.php'
'patterns': [
{
'include': '#language'
}
]
}
]
}
{
'begin': '<\\?(?i:php|=)?(?![^?]*\\?>)'
'beginCaptures':
Expand Down

0 comments on commit 28fb4f8

Please sign in to comment.