Skip to content

Commit

Permalink
Disallow reserved words from being storm command names (#1240)
Browse files Browse the repository at this point in the history
* Disallow reserved words from being storm command names
  • Loading branch information
jnwatson authored and vEpiphyte committed May 17, 2019
1 parent 58bb924 commit 0aef7a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Features and Enhancements
Bugfixes
--------

- Resolve grammar ambiguity between tag condition filters with value and left join (`#1237 <https://github.com/vertexproject/synapse/pull/1237>`_)
- Resolve Storm grammar ambiguity between tag condition filters with value and left join. (`#1237 <https://github.com/vertexproject/synapse/pull/1237>`_)
- Resolve Storm grammar ambiguity to prevent reserved words from being identified as a Storm command. (`#1240 <https://github.com/vertexproject/synapse/pull/1240>`_)

Improved Documentation
----------------------
Expand Down
2 changes: 1 addition & 1 deletion synapse/lib/storm.lark
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ ABSPROPNOUNIV: PROPS
RELPROP: /:[$.\w][$.\w:]*/

// The name of a storm command
CMDNAME: /[a-z][a-z0-9.]+/
CMDNAME: /\b(?!(break|continue|for|switch|else|elif|if|not|or|and)\b)[a-z][a-z0-9.]+\b/

// The entry point for a $(...) expression
dollarexpr: _EXPRSTART _WSCOMM? exprcmp _WSCOMM? ")"
Expand Down

0 comments on commit 0aef7a4

Please sign in to comment.