Merge pull request #573 from pulsar-edit/additional-clojure-fixes

This commit is contained in:
Maurício Szabo 2023-06-02 21:33:21 -03:00 committed by GitHub
commit 98166f6df5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View File

@ -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

View File

@ -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