summaryrefslogtreecommitdiff
path: root/support/highlight/langDefs/ly.lang
blob: 6b7da74f12385e7622d19abaaa24f99a7cf46209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Lilypond language definition file
#
# Author: Andre Simon
#   Mail: andre.simon1@gmx.de
#   Date: 15.02.2008
# ------------------------------------------
# This file is a part of highlight, a free source code converter released under the GPL.
#
# The file is used to describe keywords and special symbols of programming languages.
# See README in the highlight directory for details.
#
# New definition files for future releases of highlight are always appreciated ;)
#
# ----------
# andre.simon1@gmx.de
# http:/www.andre-simon.de/

$DESCRIPTION=Lilypond

#allow decimals to follow identifier names without ws
$IDENTIFIER=regex(([a-z]+)\d*)

$KEYWORDS(kwa)=c d e f g a h b cis dis eis fis gis ais des es ges as s bes

$KEYWORDS(kwb)=regex(\\[\w<>!\\]+)

$STRINGDELIMITERS="

# { is not supposed to follow % in single line comment
$SL_COMMENT=regex(%(?!\{).*)

$ML_COMMENT=%{ }%

$IGNORECASE=false

$SYMBOLS= ( ) [ ] { } < > ' , . / : ^ =  # * _ |  !