It appears the latest release doesn't support the scopingRule query scope. Example:
SELECT Id, Name FROM Account USING SCOPE scopingRule
If that is the case, I'd suggest doing something like this:
var ScopingRule = createToken({
name: 'ScopingRule',
pattern: /SCOPINGRULE/i,
longer_alt: Identifier,
categories: [UsingScopeEnumeration, Identifier],
start_chars_hint: ['S', 's']
});
var allTokens = [
// ...
ScopingRule,
// ...
];
It appears the latest release doesn't support the
scopingRulequery scope. Example:If that is the case, I'd suggest doing something like this: