f7568438ef
In the horrible scenario in which neovim or vim are not available on a
system I use (and yeah, I found one recently wtf), nano is a simple
alternative that gets the job done... these files are for my comfort IN
nano but not optimal. 😞
36 lines
739 B
Plaintext
36 lines
739 B
Plaintext
## Here is a prolog example.
|
|
|
|
syntax "prolog" "\.pl"
|
|
comment "%"
|
|
|
|
# Reset everything
|
|
color normal ".*"
|
|
|
|
# Integers and floats
|
|
color yellow "(^| |=)[0-9]+\.?[0-9]*"
|
|
|
|
# Variables
|
|
color red "(^|[[:blank:]]|\(|,)[A-Z]+"
|
|
color red "(^|[[:blank:]]|\(|,)_[0-9a-zA-Z_]+($|[[:blank:]]|,|\))"
|
|
|
|
# Anonymous variable '_'
|
|
color yellow "(^|[[:blank:]]|\(|,)_($|[[:blank:]]|,|\))"
|
|
|
|
# Functions
|
|
color cyan "(^|[[:blank:]])\w+\("
|
|
color normal "\(|\)|\[|\]|,|=|\\="
|
|
|
|
# Atoms
|
|
color green start="\"" end="\""
|
|
color green start="'" end="'"
|
|
|
|
# Comments
|
|
color white "(^|[[:blank:]])%.*$"
|
|
color white start="^\s*/\*" end="\*/"
|
|
|
|
# Reminders
|
|
color black,yellow "(BUG|DEBUG|FIXME|IDEA|NOTE|REVIEW|TEMP|TODO|WARNING|XXX)"
|
|
|
|
# Spaces in front of tabs
|
|
color ,red " + +"
|