add clause rule to verbatim, comment, and blocktrans
This commit is contained in:
1 parent
22362ed393
commit
db3caa1672
12 files changed
+25459
-56394
No files matched your search
+4
-1
@@ -21,5 +21,8 @@
|
||||
; scope span could have separated them; that is why this is a separate file
|
||||
; rather than a narrower scope in locals.scm.
|
||||
|
||||
(blocktranslate_group
|
||||
(blocktrans_clause
|
||||
asvar: (identifier) @export.name) @export.from
|
||||
|
||||
(blocktranslate_clause
|
||||
asvar: (identifier) @export.name) @export.from
|
||||
@@ -10,7 +10,7 @@ variable: (identifier) @variable.parameter
|
||||
(partialdef_clause
|
||||
(push_partial) @type)
|
||||
|
||||
(verbatim_group
|
||||
(verbatim_clause
|
||||
(push_verbatim) @type)
|
||||
|
||||
(comment_content) @comment
|
||||
|
||||
@@ -24,10 +24,11 @@
|
||||
(get_media_prefix
|
||||
tag: ("get_media_prefix") @library.static)
|
||||
|
||||
(blocktranslate_group
|
||||
tag: [
|
||||
("blocktrans")
|
||||
("blocktranslate")] @library.i18n)
|
||||
(blocktrans_clause
|
||||
tag: ("blocktrans") @library.i18n)
|
||||
|
||||
(blocktranslate_clause
|
||||
tag: ("blocktranslate") @library.i18n)
|
||||
|
||||
(translate
|
||||
tag: [
|
||||
|
||||
+2
-1
@@ -23,4 +23,5 @@ variable: (identifier) @local.definition
|
||||
; outside it, and carries an "asvar" field rather than "variable" so that this
|
||||
; scope does not swallow it. A tool that wants it must define it in the scope
|
||||
; around the block, which a locals query has no way to say.
|
||||
(blocktranslate_group) @local.scope
|
||||
(blocktrans_clause) @local.scope
|
||||
(blocktranslate_clause) @local.scope
|
||||
Reference in new issue
Block a user