]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/lisp.yaml
Highlight racket files as lisp (#1931)
[micro.git] / runtime / syntax / lisp.yaml
1 filetype: lisp
2
3 detect: 
4     filename: "(emacs|zile)$|\\.(el|li?sp|scm|ss|rkt)$"
5
6 rules:
7     - default: "\\([a-z-]+"
8     - symbol: "\\(([\\-+*/<>]|<=|>=)|'"
9     - constant.number: "\\b[0-9]+b>"
10     - special: "\\bnil\\b"
11     - preproc: "\\b[tT]b>"
12     - constant.string: "\\\"(\\\\.|[^\"])*\\\""
13     - constant.specialChar: "'[A-Za-z][A-Za-z0-9_-]+"
14     - constant.specialChar: "\\\\.?"
15     - comment: "(^|[[:space:]]);.*"
16     - indent-char.whitespace: "[[:space:]]+$"
17     - indent-char: "    + +| +  +"