Skip to content

Commit b5649f6

Browse files
committed
allow whitespace between parenthesis for node types
1 parent 777df15 commit b5649f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xpath.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ contexts: # NOTE: these scope names don't represent what they should, they are s
3535
- include: main
3636
- match: '{{Attribute}}'
3737
scope: keyword.control.flow.xpath # Attribute
38-
- match: '(comment|text|processing-instruction|node)\s*\(\)'
38+
- match: '(comment|text|processing-instruction|node)\s*\(\s*\)'
3939
scope: storage.type.xpath.node_type # NodeType
4040
- match: '(?:\b(?<!/)|(?<=\d))(?:and|or|mod|div)(?:\b|(?=\d))|\*|\||\+|-|!?=|<=?|>=?'
4141
scope: keyword.operator.xpath # Operator

0 commit comments

Comments
 (0)