Rename JS regexp grammar for consistency…

…plus a couple other related fixes.
This commit is contained in:
Andrew Dupont 2024-01-07 14:36:16 -08:00
parent 413eeeaa5b
commit 617bd21f41
3 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,5 @@
name: 'JavaScript RegExp'
scopeName: 'source.regexp.js'
scopeName: 'source.js.regexp'
type: 'modern-tree-sitter'
parser: 'tree-sitter-regex'

View File

@ -3,8 +3,6 @@
; * No support for lookbehind as of March 2023 (waiting on
; https://github.com/tree-sitter/tree-sitter-regex/pull/15)
(pattern) @string.regexp
(non_capturing_group) @meta.group.non-capturing.regexp
[

View File

@ -48,7 +48,7 @@ exports.activate = function () {
atom.grammars.addInjectionPoint('source.js', {
type: 'regex_pattern',
language(regex) {
language() {
return 'js-regex';
},
content(regex) {