mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-10-26 11:08:40 +03:00
Fixes on "comment block" for Clojure grammar
This commit is contained in:
parent
6fd1fa0b50
commit
674ffef8ef
@ -4,7 +4,14 @@ exports.activate = function() {
|
||||
atom.grammars.addInjectionPoint('source.clojure', {
|
||||
type: 'quoting_lit',
|
||||
language: () => 'source-edn',
|
||||
content: (node) => node,
|
||||
content: (node) => {
|
||||
let parent = node.parent
|
||||
while(parent) {
|
||||
if(parent.type === 'dis_expr') return null
|
||||
parent = parent.parent
|
||||
}
|
||||
return node
|
||||
},
|
||||
includeChildren: true,
|
||||
languageScope: 'source.edn',
|
||||
coverShallowerScopes: true
|
||||
|
@ -87,6 +87,13 @@ error/
|
||||
; ^ comment.block
|
||||
; ^ comment.block
|
||||
|
||||
#_
|
||||
(+ '1 '(:foo))
|
||||
; ^ comment.block
|
||||
; ^ !constant.numeric
|
||||
; ^ comment.block
|
||||
; ^ !constant.keyword
|
||||
|
||||
(comment 1 2 3)
|
||||
; ^ keyword.control
|
||||
; ^ constant.numeric
|
||||
|
Loading…
Reference in New Issue
Block a user