diff --git a/syntaxes/adblock.yaml-tmlanguage b/syntaxes/adblock.yaml-tmlanguage index b46a145..69b148f 100644 --- a/syntaxes/adblock.yaml-tmlanguage +++ b/syntaxes/adblock.yaml-tmlanguage @@ -216,7 +216,7 @@ repository: - include: "#exceptionScriptletRules" - include: "#blockingScriptletRules" exceptionScriptletRules: - match: "^(\\[.+?\\])?(.*?)(#@%#)(\\/\\/scriptlet)(\\()(.*)(\\)\\s*)$" + match: "^(\\[.+?\\])?(.*?)(#@%#)(\\/\\/scriptlet)(\\()(.*)(\\))\\s*$" captures: "1": patterns: @@ -239,7 +239,7 @@ repository: blockingScriptletRules: patterns: # note: we look for a parameter that contain at least one non-whitespace character - - match: "^(\\[.+?\\])?(.*?)(#%#)(\\/\\/scriptlet)(\\()(.*\\S.*)(\\)\\s*)$" + - match: "^(\\[.+?\\])?(.*?)(#%#)(\\/\\/scriptlet)(\\()(.*\\S.*)(\\))\\s*$" captures: "1": patterns: @@ -595,8 +595,8 @@ repository: - name: invalid.illegal.adblock match: ".*" emptyScriptletFunction: - match: (\\s*) - name: entity.name.section.adblock.empty-scriptlet + - name: entity.name.section.adblock.empty-scriptlet + match: "\\G\\s*\\z" scriptletFunction: patterns: - match: ((['|"])(.*?)(?