## Here is an example for PostgreSQL. syntax "sql" "\.sql[2345s~]?$" comment "-- " # Functions. color white "\<[a-z_]*\(" # Types. color green "\<(int2|smallint|int4|int|integer|int8|bigint|decimal|numeric|real|double precision|(small|big)?serial)\>" color green "\<(bit( varying)?|boolean|bytea|enum|money|tsvector|uuid)\>" color green "\<(char|varchar|character( varying)?|text)\>" color green "\<(date|interval|time(stamp)?( with time zone| without time zone)?)\>" color green "\<(point|line|lseg|path|box|polygon|circle)\>" color green "\<(cidr|inet|macaddr)\>" color green "\<(daterange|int4range|int8range|numrange|tsrange|tstzrange)\>" # Structure. color brightyellow "\<(CASE|CLASS|DEFAULT|DO|ELSE|ELSEIF|FOR|FOREACH|FUNCTION|IF|IS NULL)\>" color brightyellow "\<(NEW|PRIVATE|PUBLIC|RETURN|RETURNS|SETOF|SWITCH|THEN|WHEN|WHILE)>" # Control flow. color magenta "\<(EXCEPTION|NOTICE|RAISE|RETURN)\>" # SQL keywords. color blue "\<(ABORT|AGGREGATE|ALTER|ANALYZE|AND|AS|AUTHORIZATION|BEGIN|CAST|CHECKPOINT|CLASS|CLOSE)\>" color blue "\<(CLUSTER|COLLATION|COMMENT|COMMIT|CONFIGURATION|CONSTRAINTS|CONVERSION|COPY|CREATE)\>" color blue "\<(DATA|DATABASE|DEALLOCATE|DECLARE|DEFAULT|DELETE|DICTIONARY|DISCARD|DO|DOMAIN|DROP)\>" color blue "\<(END|EVENT|EXECUTE|EXPLAIN|EXTENSION|FAMILY|FETCH|FOREIGN|FROM|FUNCTION)\>" color blue "\<(GRANT|GROUP|IF NOT EXISTS|IMMUTABLE|INDEX|INSERT|INTO|LABEL|LANGUAGE|LARGE|LOAD|LOCK)\>" color blue "\<(MAPPING FOR|MATERIALIZED|MOVE|NOTIFY|OBJECT|OPERATOR|OPTIONS|OWNED|OWNER)\>" color blue "\<(PARSER|PREPARED?|PRIVILEGES|REASSIGN|REFRESH|RELEASE|RESET|REVOKE|ROLE|ROLLBACK|RULE)\>" color blue "\<(SAVEPOINT|SCHEMA|SEARCH|SECURITY|SELECT|SEQUENCE|SERVER|SESSION|SET|SHOW|SPACE|START|SYSTEM)\>" color blue "\<(TABLE|TEXT|TO|TRANSACTION|TYPE|UPDATE|USER|VACUUM|VALUES|VIEW|WHERE|WITH|WRAPPER)\>" # Strings. color brightyellow "<[^= ]*>" ""(\.|[^"])*"" # Trailing whitespace. color ,green "[[:space:]]+$" # Regular expressions. color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" # Shell command expansion is in `backticks` or like %x{this}. These are # "double-quotish" (to use a perlism). color brightblue "`[^`]*`" "%x\{[^}]*\}" # Strings, double-quoted. color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" color green "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" # Expression substitution. These go inside double-quoted strings, # "like #{this}". color brightgreen "#\{[^}]*\}" # Strings, single-quoted. color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" color green "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" # Comments. color red "#[^{].*$" "#$" color red "--[^{].*$" "#$" color red "##[^{].*$" "##$" color brightblue "//.*" color brightblue start="/\*" end="\*/" # PostgreSQL markings. color red "(--)" # PostgreSQL default schemas. color brightred "(pg_catalog|public)" # PostgreSQL PLs. color brightblue "(pljava|plperlu?|plpgsql|plpy|plpythonu?|plr|plruby|plsh|pltcl|plscheme)"
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
asm.nanorc | File | 884 B | 0644 |
|
autoconf.nanorc | File | 557 B | 0644 |
|
awk.nanorc | File | 1.32 KB | 0644 |
|
c.nanorc | File | 1.72 KB | 0644 |
|
changelog.nanorc | File | 711 B | 0644 |
|
cmake.nanorc | File | 827 B | 0644 |
|
css.nanorc | File | 346 B | 0644 |
|
debian.nanorc | File | 790 B | 0644 |
|
default.nanorc | File | 421 B | 0644 |
|
elisp.nanorc | File | 1.08 KB | 0644 |
|
fortran.nanorc | File | 1.92 KB | 0644 |
|
gentoo.nanorc | File | 4.13 KB | 0644 |
|
go.nanorc | File | 1.3 KB | 0644 |
|
groff.nanorc | File | 713 B | 0644 |
|
guile.nanorc | File | 590 B | 0644 |
|
html.nanorc | File | 1.18 KB | 0644 |
|
java.nanorc | File | 655 B | 0644 |
|
javascript.nanorc | File | 765 B | 0644 |
|
json.nanorc | File | 881 B | 0644 |
|
lua.nanorc | File | 2.31 KB | 0644 |
|
makefile.nanorc | File | 338 B | 0644 |
|
man.nanorc | File | 458 B | 0644 |
|
mgp.nanorc | File | 231 B | 0644 |
|
mutt.nanorc | File | 187 B | 0644 |
|
nanohelp.nanorc | File | 392 B | 0644 |
|
nanorc.nanorc | File | 2.58 KB | 0644 |
|
nftables.nanorc | File | 794 B | 0644 |
|
objc.nanorc | File | 1.76 KB | 0644 |
|
ocaml.nanorc | File | 861 B | 0644 |
|
patch.nanorc | File | 592 B | 0644 |
|
perl.nanorc | File | 1.43 KB | 0644 |
|
php.nanorc | File | 1.05 KB | 0644 |
|
po.nanorc | File | 900 B | 0644 |
|
postgresql.nanorc | File | 3 KB | 0644 |
|
pov.nanorc | File | 634 B | 0644 |
|
python.nanorc | File | 968 B | 0644 |
|
ruby.nanorc | File | 1.48 KB | 0644 |
|
rust.nanorc | File | 1.08 KB | 0644 |
|
sh.nanorc | File | 1.17 KB | 0644 |
|
spec.nanorc | File | 1.88 KB | 0644 |
|
tcl.nanorc | File | 2.13 KB | 0644 |
|
tex.nanorc | File | 202 B | 0644 |
|
texinfo.nanorc | File | 467 B | 0644 |
|
xml.nanorc | File | 529 B | 0644 |
|