1
0
mirror of https://github.com/scopatz/nanorc synced 2024-09-21 05:56:00 +02:00
nanorc/prolog.nanorc
Harsh Shandilya a22ad89b77
Fix block comments highlighting
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-12-22 16:57:25 +05:30

36 lines
737 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 " + +"