diff --git a/queries/ecma/regexplainer.scm b/queries/ecma/regexplainer.scm new file mode 100644 index 0000000..1b23f65 --- /dev/null +++ b/queries/ecma/regexplainer.scm @@ -0,0 +1,2 @@ +(regex + (regex_pattern) @regexplainer.pattern) @regexplainer.regex diff --git a/queries/javascript/regexplainer.scm b/queries/javascript/regexplainer.scm index 1b23f65..107ea40 100644 --- a/queries/javascript/regexplainer.scm +++ b/queries/javascript/regexplainer.scm @@ -1,2 +1 @@ -(regex - (regex_pattern) @regexplainer.pattern) @regexplainer.regex +;; inherits: ecma diff --git a/queries/typescript/regexplainer.scm b/queries/typescript/regexplainer.scm new file mode 100644 index 0000000..107ea40 --- /dev/null +++ b/queries/typescript/regexplainer.scm @@ -0,0 +1 @@ +;; inherits: ecma