mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
Rename JS regexp grammar for consistency…
…plus a couple other related fixes.
This commit is contained in:
parent
413eeeaa5b
commit
617bd21f41
@ -1,5 +1,5 @@
|
||||
name: 'JavaScript RegExp'
|
||||
scopeName: 'source.regexp.js'
|
||||
scopeName: 'source.js.regexp'
|
||||
type: 'modern-tree-sitter'
|
||||
parser: 'tree-sitter-regex'
|
||||
|
||||
|
@ -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
|
||||
|
||||
[
|
||||
|
@ -48,7 +48,7 @@ exports.activate = function () {
|
||||
|
||||
atom.grammars.addInjectionPoint('source.js', {
|
||||
type: 'regex_pattern',
|
||||
language(regex) {
|
||||
language() {
|
||||
return 'js-regex';
|
||||
},
|
||||
content(regex) {
|
||||
|
Loading…
Reference in New Issue
Block a user