micro/runtime/syntax/r.yaml
Zachary Yedidia 2fcb40d5a9 Use new syntax highlighting engine from zyedidia/highlight
This changes all the syntax files in the runtime directory and also
changes how syntax highlighting is done from inside micro.
2017-02-26 11:14:35 -05:00

13 lines
306 B
YAML

filetype: r
detect:
filename: "\\.(r|R)$"
rules:
- statement: "\\b(break|else|for|function|if|in|next|repeat|return|while)\\b"
- constant: "\\b(TRUE|FALSE|NULL|Inf|NaN|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\\b"
- comment:
start: "#"
end: "$"
rules: []