syntaxes: uniformize the initial comment

master
Benno Schulenberg 2020-04-20 19:15:43 +02:00
parent c859fd40b6
commit fea5d7c612
33 changed files with 39 additions and 40 deletions

View File

@ -1,4 +1,4 @@
## Here is an example for assembler. ## Syntax highlighting for assembler.
syntax asm "\.(S|s|asm)$" syntax asm "\.(S|s|asm)$"
magic "assembler source" magic "assembler source"

View File

@ -1,4 +1,4 @@
## Here is an example for Autoconf. ## Syntax highlighting for Autoconf.
syntax autoconf "\.(ac|m4)$" syntax autoconf "\.(ac|m4)$"
comment "#" comment "#"

View File

@ -1,4 +1,4 @@
## Here is an example for awk. ## Syntax highlighting for AWK scripts.
syntax awk "\.awk$" syntax awk "\.awk$"
header "^#!.*awk" header "^#!.*awk"

View File

@ -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?)$" syntax c "\.([ch](pp|xx)?|C|cc|c\+\+|cu|H|hh|ii?)$"
header "-\*-.*\<C(\+\+)?((;|\s).*)?-\*-" header "-\*-.*\<C(\+\+)?((;|\s).*)?-\*-"

View File

@ -1,4 +1,4 @@
## Colouring for Changelogs. ## Syntax highlighting for Changelogs.
syntax changelog "Change[Ll]og[^/]*$" syntax changelog "Change[Ll]og[^/]*$"

View File

@ -1,4 +1,4 @@
## Here is an example for CSS files. ## Syntax highlighting for CSS files.
syntax css "\.css$" syntax css "\.css$"
comment "/*|*/" comment "/*|*/"

View File

@ -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. ## files that do not match any other syntax.
syntax default syntax default

View File

@ -1,4 +1,4 @@
## Here is an example for Emacs Lisp. ## Syntax highlighting for Emacs Lisp.
syntax elisp "\.el$" syntax elisp "\.el$"
magic "Lisp/Scheme program" magic "Lisp/Scheme program"

View File

@ -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 "!" comment "!"
color red "\<[0-9]+\>" color red "\<[0-9]+\>"

View File

@ -1,4 +1,4 @@
## Here is an example for Go. ## Syntax highlighting for Go.
syntax go "\.go$" syntax go "\.go$"
comment "//" comment "//"

View File

@ -1,4 +1,4 @@
## Here is an example for groff. ## Syntax highlighting for groff.
syntax groff "(/tmac\.[^/]+$|\.(m[ems]|rof|tmac)$)" syntax groff "(/tmac\.[^/]+$|\.(m[ems]|rof|tmac)$)"
comment ".\"" comment ".\""

View File

@ -1,4 +1,4 @@
## Here is an example for Guile Scheme. ## Syntax highlighting for Guile Scheme.
syntax guile "\.scm$" syntax guile "\.scm$"
header "^#!.*guile" header "^#!.*guile"

View File

@ -1,4 +1,4 @@
## Here is an example for HTML. ## Syntax highlighting for HTML.
syntax html "\.html?$" syntax html "\.html?$"
magic "HTML document" magic "HTML document"

View File

@ -1,4 +1,4 @@
## Here is an example for Java. ## Syntax highlighting for Java.
syntax java "\.java$" syntax java "\.java$"
magic "Java " magic "Java "

View File

@ -1,8 +1,7 @@
## Syntax highlighting for JSON files. ## Syntax highlighting for JSON files.
# See: http://www.json.org/ ## Original author: Aapo Rantalainen
# Original author: Aapo Rantalainen ## License: GPL version 3 or newer
# License: GPLv3 or newer
syntax json "\.json$" syntax json "\.json$"
# No comments are permitted in JSON. # No comments are permitted in JSON.

View File

@ -1,7 +1,7 @@
## Syntax highlighting for Lua. ## Syntax highlighting for Lua.
#
## Original author: Matthew Wild <mwild1 (at) gmail.com> ## Original author: Matthew Wild
## License: GPL 3 or later ## License: GPL version 3 or newer
syntax lua "\.lua$" syntax lua "\.lua$"
magic "Lua script" magic "Lua script"

View File

@ -1,4 +1,4 @@
## Here is an example for Makefiles. ## Syntax highlighting for Makefiles.
syntax makefile "(/((GNU)?m|M)akefile[^/]*$|\.(make|mk)$)" syntax makefile "(/((GNU)?m|M)akefile[^/]*$|\.(make|mk)$)"
magic "makefile script" magic "makefile script"

View File

@ -1,4 +1,4 @@
## Here is an example for nanorc files. ## Syntax highlighting for nanorc files.
syntax nanorc "\.?nanorc$" syntax nanorc "\.?nanorc$"
comment "#" comment "#"

View File

@ -1,4 +1,4 @@
## Here is an example for nftables. ## Syntax highlighting for the packet-filtering rules of Netfilter.
syntax nftables "\.(nft|nftables)$" syntax nftables "\.(nft|nftables)$"
header "^#!.*(nft|nftables)" header "^#!.*(nft|nftables)"

View File

@ -1,4 +1,4 @@
## Here is an example for C/C++/Obj-C. ## Syntax highlighting for C/C++/Obj-C files.
syntax m "\.m$" syntax m "\.m$"
magic "Objective-C source" magic "Objective-C source"

View File

@ -1,4 +1,4 @@
## Here is an example for patch files. ## Syntax highlighting for patch and diff files.
syntax patch "\.(patch|diff|debdiff)$" syntax patch "\.(patch|diff|debdiff)$"
magic "diff output" magic "diff output"

View File

@ -1,4 +1,4 @@
## Here is an example for Perl. ## Syntax highlighting for Perl.
syntax perl "\.p[lm]$" syntax perl "\.p[lm]$"
header "^#!.*perl" header "^#!.*perl"

View File

@ -1,4 +1,4 @@
## Here is an example for PHP. ## Syntax highlighting for PHP.
syntax php "\.(php[23457s~]?|phtml|ctp)$" syntax php "\.(php[23457s~]?|phtml|ctp)$"
magic "PHP script" magic "PHP script"

View File

@ -1,4 +1,4 @@
## Colouring for PO files. ## Syntax highlighting for PO files.
syntax po "\.pot?$" syntax po "\.pot?$"
comment "#" comment "#"

View File

@ -1,4 +1,4 @@
## Here is an example for PostgreSQL. ## Syntax highlighting for Postgres SQL scripts.
syntax sql "\.sql[2345s~]?$" syntax sql "\.sql[2345s~]?$"
comment "-- " comment "-- "

View File

@ -1,4 +1,4 @@
## Here is an example for POV-Ray. ## Syntax highlighting for POV-Ray files.
syntax pov "\.(pov|POV|povray|POVRAY)$" syntax pov "\.(pov|POV|povray|POVRAY)$"
comment "//" comment "//"

View File

@ -1,4 +1,4 @@
## Here is an example for Python. ## Syntax highlighting for Python.
syntax python "\.py$" syntax python "\.py$"
header "^#!.*python" header "^#!.*python"

View File

@ -1,11 +1,12 @@
## Here is an example for Ruby. ## Syntax highlighting for Ruby.
syntax ruby "\.rb$" syntax ruby "\.rb$"
header "^#!.*ruby" header "^#!.*ruby"
magic "Ruby script" magic "Ruby script"
linter ruby -w -c
comment "#" comment "#"
linter ruby -w -c
# Constants. # Constants.
color brightblue "\<[A-Z]+[0-9A-Z_a-z]*|(\$|@|@@)[0-9A-Z_a-z]+" color brightblue "\<[A-Z]+[0-9A-Z_a-z]*|(\$|@|@@)[0-9A-Z_a-z]+"
# Reserved words. # Reserved words.

View File

@ -1,9 +1,8 @@
## Syntax highlighting for Rust. ## Syntax highlighting for Rust.
## Copyright 2015 Luke Francl. ## Copyright 2015 Luke Francl.
## Licensed under GPL version 3. ## Licensed under GPL version 3.
## NOTE: Rules are applied in order: later rules re-colorize matching text.
syntax rust "\.(rlib|rs)$" syntax rust "\.(rlib|rs)$"
comment "//" comment "//"

View File

@ -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)$" 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)" header "^#!.*/(((a|ba|c|da|k|mk|pdk|tc|z)?sh)|(busybox|env) +sh|openrc-run|runscript)"

View File

@ -1,4 +1,4 @@
## Here is a short example for TeX files. ## Syntax highlighting for TeX files.
syntax tex "\.tex$" syntax tex "\.tex$"
magic "(La)?TeX document" magic "(La)?TeX document"

View File

@ -1,4 +1,4 @@
## Here is an example for Texinfo files. ## Syntax highlighting for Texinfo files.
syntax texinfo "\.texi$" syntax texinfo "\.texi$"
header "^\\input texinfo" header "^\\input texinfo"

View File

@ -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)$" syntax xml "\.([jrsx]html?|jnlp|mml|pom|rng|sgml?|svg|w[as]dl|wsdd|xjb|xml|xs(d|lt?)|xul)$"
header "<\?xml.*version=.*\?>" header "<\?xml.*version=.*\?>"