@ -119,7 +119,7 @@ module.exports = grammar(clojure, {
name : 'commonlisp' ,
extras : ( $ , original ) => [ ... original , $ . block _comment ] ,
conflicts : ( $ , original ) => [ ... original , [ $ . for _clause ] , [ $ . accumulation _clause ] , ] ,
conflicts : ( $ , original ) => [ ... original , [ $ . for _clause ] , [ $ . accumulation _clause ] , [ $ . loop _macro , $ . defun _keyword , $ . package _lit ] ] ,
rules : {
block _comment : _ => token ( seq ( '#|' , repeat ( choice ( /[^|]/ , /\|[^#]/ ) ) , '|#' ) ) ,
@ -257,7 +257,7 @@ module.exports = grammar(clojure, {
repeat ( choice ( $ . loop _clause , $ . _gap ) ) ,
field ( 'close' , ")" ) ) ) ,
defun _keyword : _ => clSymbol( choice ( 'defun' , 'defmacro' , 'defgeneric' , 'defmethod' ) ) ,
defun _keyword : _ => prec( 10 , clSymbol( choice ( 'defun' , 'defmacro' , 'defgeneric' , 'defmethod' ) ) ) ,
defun _header : $ =>
choice (
@ -294,11 +294,11 @@ module.exports = grammar(clojure, {
repeat ( choice ( field ( 'value' , $ . _form ) , $ . _gap ) ) ,
field ( 'close' , ")" ) ) ) ,
package _lit : $ => prec ( PREC . PACKAGE _LIT , seq(
package _lit : $ => prec ( PREC . PACKAGE _LIT , choice( seq(
field ( 'package' , choice ( $ . sym _lit , 'cl' ) ) , // Make optional, instead of keywords?
choice ( ':' , '::' ) ,
field ( 'symbol' , $ . sym _lit )
) ),
) , prec ( 1 , 'cl' ) ) ),
_package _lit _without _slash : $ => seq (
field ( 'package' , choice ( $ . _sym _lit _without _slash , 'cl' ) ) , // Make optional, instead of keywords?