nanorc/prolog.nanorc
Richard Fleming 2f5ca7b681
Fixes nano's complaints with prolog.nanorc
1. Nano complains that `syntax` requires strings to be quoted.
2. `color normal` fails.  Color can only be white, black, red, blue, green, yellow, magenta, and cyan
2018-10-11 00:24:41 -04:00

36 lines
733 B
Plaintext

## Here is a prolog example.
syntax "prolog" "\.pl"
comment "%"
# Reset everything
color white ".*"
# 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 white "\(|\)|\[|\]|,|=|\\="
# Atoms
color green start="\"" end="\""
color green start="'" end="'"
# Comments
color white "(^|[[:blank:]])%.*$"
color white start="/\*" end="\*/"
# Reminders
color black,yellow "(BUG|DEBUG|FIXME|IDEA|NOTE|REVIEW|TEMP|TODO|WARNING|XXX)"
# Spaces in front of tabs
color ,red " + +"