mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-08-16 14:40:23 +03:00
Merge pull request #573 from pulsar-edit/additional-clojure-fixes
This commit is contained in:
commit
98166f6df5
@ -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