mirror of git://git.sv.gnu.org/nano.git
syntaxes: uniformize the initial comment
This commit is contained in:
parent
c859fd40b6
commit
fea5d7c612
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for assembler.
|
||||
## Syntax highlighting for assembler.
|
||||
|
||||
syntax asm "\.(S|s|asm)$"
|
||||
magic "assembler source"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for Autoconf.
|
||||
## Syntax highlighting for Autoconf.
|
||||
|
||||
syntax autoconf "\.(ac|m4)$"
|
||||
comment "#"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for awk.
|
||||
## Syntax highlighting for AWK scripts.
|
||||
|
||||
syntax awk "\.awk$"
|
||||
header "^#!.*awk"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for C/C++.
|
||||
## Syntax highlighting for C and C++ files.
|
||||
|
||||
syntax c "\.([ch](pp|xx)?|C|cc|c\+\+|cu|H|hh|ii?)$"
|
||||
header "-\*-.*\<C(\+\+)?((;|\s).*)?-\*-"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Colouring for Changelogs.
|
||||
## Syntax highlighting for Changelogs.
|
||||
|
||||
syntax changelog "Change[Ll]og[^/]*$"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for CSS files.
|
||||
## Syntax highlighting for CSS files.
|
||||
|
||||
syntax css "\.css$"
|
||||
comment "/*|*/"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## An example of a default syntax. The default syntax is used for
|
||||
## This is an example of a default syntax. The default syntax is used for
|
||||
## files that do not match any other syntax.
|
||||
|
||||
syntax default
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for Emacs Lisp.
|
||||
## Syntax highlighting for Emacs Lisp.
|
||||
|
||||
syntax elisp "\.el$"
|
||||
magic "Lisp/Scheme program"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## Here is an example for Fortran 90/95.
|
||||
## Syntax highlighting for Fortran 90/95.
|
||||
|
||||
syntax fortran "\.(f|f90|f95)$"
|
||||
syntax fortran "\.(f|for|f90|f95)$"
|
||||
comment "!"
|
||||
|
||||
color red "\<[0-9]+\>"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for Go.
|
||||
## Syntax highlighting for Go.
|
||||
|
||||
syntax go "\.go$"
|
||||
comment "//"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for groff.
|
||||
## Syntax highlighting for groff.
|
||||
|
||||
syntax groff "(/tmac\.[^/]+$|\.(m[ems]|rof|tmac)$)"
|
||||
comment ".\""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for Guile Scheme.
|
||||
## Syntax highlighting for Guile Scheme.
|
||||
|
||||
syntax guile "\.scm$"
|
||||
header "^#!.*guile"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for HTML.
|
||||
## Syntax highlighting for HTML.
|
||||
|
||||
syntax html "\.html?$"
|
||||
magic "HTML document"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for Java.
|
||||
## Syntax highlighting for Java.
|
||||
|
||||
syntax java "\.java$"
|
||||
magic "Java "
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
## Syntax highlighting for JSON files.
|
||||
|
||||
# See: http://www.json.org/
|
||||
# Original author: Aapo Rantalainen
|
||||
# License: GPLv3 or newer
|
||||
## Original author: Aapo Rantalainen
|
||||
## License: GPL version 3 or newer
|
||||
|
||||
syntax json "\.json$"
|
||||
# No comments are permitted in JSON.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
## Syntax highlighting for Lua.
|
||||
#
|
||||
## Original author: Matthew Wild <mwild1 (at) gmail.com>
|
||||
## License: GPL 3 or later
|
||||
|
||||
## Original author: Matthew Wild
|
||||
## License: GPL version 3 or newer
|
||||
|
||||
syntax lua "\.lua$"
|
||||
magic "Lua script"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for Makefiles.
|
||||
## Syntax highlighting for Makefiles.
|
||||
|
||||
syntax makefile "(/((GNU)?m|M)akefile[^/]*$|\.(make|mk)$)"
|
||||
magic "makefile script"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for nanorc files.
|
||||
## Syntax highlighting for nanorc files.
|
||||
|
||||
syntax nanorc "\.?nanorc$"
|
||||
comment "#"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for nftables.
|
||||
## Syntax highlighting for the packet-filtering rules of Netfilter.
|
||||
|
||||
syntax nftables "\.(nft|nftables)$"
|
||||
header "^#!.*(nft|nftables)"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for C/C++/Obj-C.
|
||||
## Syntax highlighting for C/C++/Obj-C files.
|
||||
|
||||
syntax m "\.m$"
|
||||
magic "Objective-C source"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for patch files.
|
||||
## Syntax highlighting for patch and diff files.
|
||||
|
||||
syntax patch "\.(patch|diff|debdiff)$"
|
||||
magic "diff output"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for Perl.
|
||||
## Syntax highlighting for Perl.
|
||||
|
||||
syntax perl "\.p[lm]$"
|
||||
header "^#!.*perl"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for PHP.
|
||||
## Syntax highlighting for PHP.
|
||||
|
||||
syntax php "\.(php[23457s~]?|phtml|ctp)$"
|
||||
magic "PHP script"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Colouring for PO files.
|
||||
## Syntax highlighting for PO files.
|
||||
|
||||
syntax po "\.pot?$"
|
||||
comment "#"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for PostgreSQL.
|
||||
## Syntax highlighting for Postgres SQL scripts.
|
||||
|
||||
syntax sql "\.sql[2345s~]?$"
|
||||
comment "-- "
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for POV-Ray.
|
||||
## Syntax highlighting for POV-Ray files.
|
||||
|
||||
syntax pov "\.(pov|POV|povray|POVRAY)$"
|
||||
comment "//"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for Python.
|
||||
## Syntax highlighting for Python.
|
||||
|
||||
syntax python "\.py$"
|
||||
header "^#!.*python"
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
## Here is an example for Ruby.
|
||||
## Syntax highlighting for Ruby.
|
||||
|
||||
syntax ruby "\.rb$"
|
||||
header "^#!.*ruby"
|
||||
magic "Ruby script"
|
||||
linter ruby -w -c
|
||||
comment "#"
|
||||
|
||||
linter ruby -w -c
|
||||
|
||||
# Constants.
|
||||
color brightblue "\<[A-Z]+[0-9A-Z_a-z]*|(\$|@|@@)[0-9A-Z_a-z]+"
|
||||
# Reserved words.
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
## Syntax highlighting for Rust.
|
||||
|
||||
## Copyright 2015 Luke Francl.
|
||||
## Licensed under GPL version 3.
|
||||
|
||||
## NOTE: Rules are applied in order: later rules re-colorize matching text.
|
||||
|
||||
syntax rust "\.(rlib|rs)$"
|
||||
comment "//"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for Bourne shell scripts.
|
||||
## Syntax highlighting for Bourne shell scripts.
|
||||
|
||||
syntax sh "(\.sh|(\.|/)(a|ba|c|da|k|mk|pdk|tc|z)sh(rc|_profile)?|/(etc/|\.)profile)$"
|
||||
header "^#!.*/(((a|ba|c|da|k|mk|pdk|tc|z)?sh)|(busybox|env) +sh|openrc-run|runscript)"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is a short example for TeX files.
|
||||
## Syntax highlighting for TeX files.
|
||||
|
||||
syntax tex "\.tex$"
|
||||
magic "(La)?TeX document"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for Texinfo files.
|
||||
## Syntax highlighting for Texinfo files.
|
||||
|
||||
syntax texinfo "\.texi$"
|
||||
header "^\\input texinfo"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Here is an example for XML files.
|
||||
## Syntax highlighting for XML files.
|
||||
|
||||
syntax xml "\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$"
|
||||
header "<\?xml.*version=.*\?>"
|
||||
|
|
Loading…
Reference in New Issue