syntaxes: uniformize the initial comment

This commit is contained in:
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)$"
magic "assembler source"

View File

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

View File

@ -1,4 +1,4 @@
## Here is an example for awk.
## Syntax highlighting for AWK scripts.
syntax awk "\.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?)$"
header "-\*-.*\<C(\+\+)?((;|\s).*)?-\*-"

View File

@ -1,4 +1,4 @@
## Colouring for Changelogs.
## Syntax highlighting for Changelogs.
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$"
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.
syntax default

View File

@ -1,4 +1,4 @@
## Here is an example for Emacs Lisp.
## Syntax highlighting for Emacs Lisp.
syntax elisp "\.el$"
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 "!"
color red "\<[0-9]+\>"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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.

View File

@ -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"

View File

@ -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"

View File

@ -1,4 +1,4 @@
## Here is an example for nanorc files.
## Syntax highlighting for nanorc files.
syntax nanorc "\.?nanorc$"
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)$"
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$"
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)$"
magic "diff output"

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
## Here is an example for PostgreSQL.
## Syntax highlighting for Postgres SQL scripts.
syntax sql "\.sql[2345s~]?$"
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)$"
comment "//"

View File

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

View File

@ -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.

View File

@ -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 "//"

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)$"
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$"
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$"
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)$"
header "<\?xml.*version=.*\?>"