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

Commit

Permalink
Add AND as a valid SQL keyword
Browse files Browse the repository at this point in the history
Fixes #52
  • Loading branch information
Wliu authored and Wliu committed Jun 9, 2017
1 parent 40bd220 commit e62c013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grammars/php.cson
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,7 @@
'match': '\\\\(?:\\\\(?:\\\\[\\\\\']?|[^\'])|.)'
'name': 'constant.character.escape.php'
'sql-string-double-quoted':
'begin': '"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)'
'begin': '"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND)\\b)'
'beginCaptures':
'0':
'name': 'punctuation.definition.string.begin.php'
Expand Down Expand Up @@ -2176,7 +2176,7 @@
}
]
'sql-string-single-quoted':
'begin': '\'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)'
'begin': '\'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND)\\b)'
'beginCaptures':
'0':
'name': 'punctuation.definition.string.begin.php'
Expand Down

0 comments on commit e62c013

Please sign in to comment.