You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
524 B

; vim-syntax-maker.neb
; by mryouse
; create a vim syntax file based on symbols available in the REPL
; all available function names, as string
(def all-funcs (map (lambda (x) (last (split x " ")))(map ->string (funcs))))
; statements get highlighted differently
(def all-syntax (map (lambda (x) (last (split x " ")))(map ->string (syntax))))
(print "\n\" generated by vim-syntax-maker.neb")
(print (concat "syn keyword nebFunc " (join all-funcs " ")))
(print (concat "syn keyword nebCommand " (join all-syntax " ")))