From b5649f6895d876ba15a9ba7ea0f9efccf99076c2 Mon Sep 17 00:00:00 2001 From: Keith Hall Date: Wed, 17 Feb 2016 15:10:55 +0200 Subject: [PATCH] allow whitespace between parenthesis for node types --- xpath.sublime-syntax | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpath.sublime-syntax b/xpath.sublime-syntax index 3bf99bf..3db6978 100644 --- a/xpath.sublime-syntax +++ b/xpath.sublime-syntax @@ -35,7 +35,7 @@ contexts: # NOTE: these scope names don't represent what they should, they are s - include: main - match: '{{Attribute}}' scope: keyword.control.flow.xpath # Attribute - - match: '(comment|text|processing-instruction|node)\s*\(\)' + - match: '(comment|text|processing-instruction|node)\s*\(\s*\)' scope: storage.type.xpath.node_type # NodeType - match: '(?:\b(?=?' scope: keyword.operator.xpath # Operator