2018-09-05 10:56:49 +02:00
|
|
|
## Here is a prolog example.
|
|
|
|
|
2019-12-30 23:50:15 +01:00
|
|
|
syntax "prolog" "\.pl"
|
2018-09-05 10:56:49 +02:00
|
|
|
comment "%"
|
|
|
|
|
|
|
|
# Reset everything
|
2019-12-30 23:50:15 +01:00
|
|
|
color white ".*"
|
2018-09-05 10:56:49 +02:00
|
|
|
|
|
|
|
# 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+\("
|
2019-12-30 23:51:30 +01:00
|
|
|
color white "\(|\)|\[|\]|,|=|\\="
|
2018-09-05 10:56:49 +02:00
|
|
|
|
|
|
|
# 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 " + +"
|