Debian Codegraph @

data/syntax/lilypond.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE language [
3 <!ENTITY b "(?![A-Za-z])">
4 <!ENTITY rest "\b[srR]&b;">
5 <!ENTITY pitch "\b([a-h]((iss){1,2}|(ess){1,2}|(is){1,2}|(es){1,2}|(sharp){1,2}|(flat){1,2}|ss?|ff?)?|(do|re|mi|fa|sol|la|si)(dd?|bb?|ss?|kk?)?|q)('+|,+|&b;)">
6 <!ENTITY duration "(\\(longa|breve)\b|(1|2|4|8|16|32|64|128|256|512|1024|2048)(?!\d))(\s*\.+)?(\s*\*\s*\d+(/\d+)?)*">
7 <!ENTITY dynamics "p{1,5}|mp|mf|f{1,5}|s?fp|sff?|spp?|[sr]?fz|cresc|decresc|dim">
8 <!ENTITY scripts "\d+|accent|marcato|staccat(issim)?o|espressivo|tenuto|portato|(up|down)(bow|mordent|prall)|flageolet|thumb|[lr](heel|toe)|open|stopped|turn|reverseturn|trill|mordent|prall(prall|mordent|down|up)?|lineprall|signumcongruentiae|(short|long|verylong)?fermata|segno|(var)?coda|snappizzicato|halfopen">
9 <!ENTITY keywords "accepts|alias|consists|defaultchild|denies|description|grobdescriptions|include|invalid|language|name|objectid|once|remove|sequential|simultaneous|type|version|score|book|bookpart">
10 <!ENTITY deprecatedkeywords "consistsend">
11
12 <!-- predefined commands, grouped, TODO: unravel other commands -->
13 <!ENTITY commands-heads "(aiken|funk|sacredHarp|southernHarmony|walker)Heads(Minor)?">
14 <!ENTITY commands-other1 "acciaccatura|addQuote|afterGrace|allowPageTurn|alternative|apply(Context|Music|Output)|appoggiatura|arpeggio(Arrow(Down|Up)|Bracket|Normal|Parenthesis)?|(a|de)scendens|auctum|augmentum|autoBeamO(ff|n)|autochange|balloon(Grob)?Text|bar|barNumberCheck|bendAfter|breathe|break|cadenzaO(ff|n)|cavum|clef(\s+(treble|violin|G|alto|C|tenor|(sub)?bass|F|french|(mezzo)?soprano|(var)?baritone|percussion|tab))?|(end)?(de)?cr|cresc(TextCresc|Hairpin)">
15 <!ENTITY commands-other2 "(cue|transposedCue)During|default|deminutum|dim(Text(Decresc|Decr|Dim)|Hairpin)|display(Lily)?Music|divisio(Maior|Maxima|Minima)|(dynamic|dots|phrasingSlur|slur|stem|tie|tuplet)(Down|Neutral|Up)|(balloon|text)LengthO(ff|n)|featherDurations|figure(mode|s)|finalis|flexa|(french|german|italian|semiGerman)Chords|glissando|grace|harmonic|(unH|h)ideNotes|(hide|show)StaffSwitch|inclinatum|(keep|remove)WithTag|key(\s+&pitch;)?|killCues">
16 <!ENTITY commands-other3 "label|laissezVibrer|linea|makeClusters|mark|maxima|melisma(End)?|mergeDifferently(Head|Dott)edO(ff|n)|newSpacingSection|no(Beam|Break|PageBreak|PageTurn)|normalsize|numericTimeSignature|octaveCheck|oneVoice|oriscus|ottava|page(-ref|Break|Turn)|parallelMusic|parenthesize|partcombine|partial(\s*&duration;)?|pes|pitchedTrill">
17 <!ENTITY commands-other4 "pointAndClickO(ff|n)|quilisma|quoteDuring|relative(\s+&pitch;)?|RemoveEmptyStaffContext|repeat(\s+(unfold|volta|tremolo|percent)(\s+\d+)?)?|repeatTie|resetRelativeOctave|rest|scaleDurations|scoreTweak|easyHeadsO(ff|n)|shift(Durations|Off|On{1,3})|(slur|tie)(Both|Dashed|Dotted|Solid)|small|spacingTweaks">
18 <!ENTITY commands-other5 "(start|stop)(Group|(Text|Trill)Span|Staff)|stemBoth|stropha|super|(sustain|sostenuto)O(ff|n)|table-of-contents|tag|times?(\s*\d+/\d+)?|tiny|tocItem">
19 <!ENTITY commands-other6 "transpose(\s+&pitch;\s*&pitch;)?|transposition(\s+&pitch;)">
20 <!ENTITY commands-other7 "tweak|unfoldRepeats|virg(ul)?a|voice(One|Two|Three|Four)|withMusicProperty|cm|mm|in|pt|major|minor|ionian|locrian|aeolian|mixolydian|lydian|phrygian|dorian">
21
22 <!ENTITY deprecatedcommands "arpeggio(Up|Down|Neutral)|newpage|script(Up|Down|Both)|(empty|fat)Text|setEasyHeads|(default|voice|modernVoice|piano|forget)Accidentals|(modern(Voice)?|piano)Cautionaries|noResetKey|compressMusic|octave|(sustain|sostenuto)(Down|Up)|set(Hairpin|Text)(Cresc|Decresc|Dim)|setTextDecr">
23 <!ENTITY markupnotextargs "arrow-head|beam|char|(semi|sesqui|double)?(flat|sharp)|draw-(circle|line)|epsfile|eyeglasses|filled-box|fret-diagram(-terse|-verbose)?|fromproperty|harp-pedal|(justify|wordwrap)-(field|string)|left-brace|lookup|markalphabet|markletter|musicglyph|natural|note-by-number|note|null|path|right-brace|simple|(back)?slashed-digit|stencil|strut|tied-lyric|triangle|verbatim-file">
24 <!ENTITY markupwithtextargs "markup|bold|(rounded-)?box|bracket|caps|(center|general|left|right)-align|circle|((center|dir|left|right)-)?column|combine|concat|dynamic|fill-line|finger|fontCaps|(abs-)?fontsize|fraction|halign|hbracket|hcenter-in|hcenter|hspace|huge|italic|justify|larger?|line|lower|magnify|medium|normal-size-(sub|super)|normal-text|normalsize|number|on-the-fly|override|pad-(around|markup|to-box|x)|page-ref|postscript|put-adjacent|raise|roman|rotate|sans|small(er)?|smallCaps|sub|super|teeny|text|tiny|translate(-scaled)?|transparent|typewriter|underline|upright|vcenter|whiteout|with-(color|dimensions|url)|wordwrap|(markup|column-|justified-|override-|wordwrap-)lines|wordwrap-(string-)?internal">
25 <!ENTITY deprecatedmarkup "bigger|h?center">
26 <!ENTITY headervars "dedication|(?:sub){0,2}title|poet|composer|meter|opus|arranger|instrument|piece|breakbefore|copyright|tagline|mutopia(title|composer|poet|opus|instrument)|date|enteredby|source|style|maintainer(Email|Web)?|moreInfo|lastupdated|texidoc|footer">
27
28 <!-- The '-new' entities are for for LilyPond 2.13.4 and higher, and '-old' for LilyPond up to 2.12 -->
29 <!ENTITY paper-margin "(top|bottom|left|right)-margin|(foot|head)-separation|indent|short-indent|paper-(height|width)|horizontal-shift|line-width">
30 <!ENTITY paper-margin-new "(inner|outer)-margin|two-sided|binding-offset">
31 <!ENTITY paper-spacing-old "(after|before|between)-title-space|between-system-(space|padding)|page-top-space|page-breaking-between-system-padding">
32 <!ENTITY paper-spacing-new "(after|before|between)-title-spacing|between-(scores-)?system-spacing|bottom-system-spacing|top-title-spacing|top-system-spacing|page-breaking-between-system-spacing">
33 <!ENTITY paper-systems "system-count">
34 <!ENTITY paper-systems-new "(min-|max-)?systems-per-page">
35 <!ENTITY paper-other "annotate-spacing|auto-first-page-number|blank-(last-)?page-force|first-page-number|page-count|page-limit-inter-system-space|page-limit-inter-system-space-factor|page-spacing-weight|print-all-headers|print-first-page-number|print-page-number|ragged-(bottom|right)|ragged-last(-bottom)?|system-separator-markup|force-assignment|input-encoding|output-scale">
36 <!ENTITY paper-markup "((even|odd)(Footer|Header)|(book|score|toc)Title|tocItem)Markup">
37 <!ENTITY papervars "&paper-margin;|&paper-margin-new;|&paper-spacing-old;|&paper-spacing-new;|&paper-systems;|&paper-systems-new;|&paper-other;|&paper-markup;">
38
39 <!ENTITY layoutvars "system-count|(short-)?indent">
40 <!ENTITY toplevelvars "dash(Hat|Plus|Dash|Bar|Larger|Dot|Underscore)|fermataMarkup|pipeSymbol|slashSeparator">
41 <!ENTITY performer "Beam|Control_track|Drum_note|Dynamic|Key|Lyric|Note|Piano_pedal|Slur|Staff|Swallow|Tempo|Tie|Time_signature">
42 <!ENTITY translator "Note_swallow|Rest_swallow|Skip_event_swallow|Timing">
43 <!ENTITY engraver0 "Accidental|Ambitus|Arpeggio|Auto_beam|Axis_group|Balloon|Bar|Bar_number|Beam|Bend|Break_align|Breathing_sign|Chord_name|Chord_tremolo|Clef|Cluster_spanner|Collision|Completion_heads|Custos|Default_bar_line|Dot_column|Dots|Drum_notes|Dynami_align|Dynamic|Episema|Extender|Figured_bass|Figured_bass_position|Fingering|Font_size|Forbid_line_break|Fretboard|Glissando|Grace_beam|Grace|Grace_spacing|Grid_line_span|Grid_point|Grob_pq|Hara_kiri|Horizontal_bracket">
44 <!ENTITY engraver1 "Hyphen|Instrument_name|Instrument_switch|Key|Laissez_vibrer|Ledger_line|Ligature_bracket|Lyric|Mark|Measure_grouping|Melody|Mensural_ligature|Metronome_mark|Multi_measure_rest|New_dynamic|New_fingering|Note_head_line|Note_heads|Note_name|Note_spacing|Ottava_spanner|Output_property|Page_turn|Paper_column|Parenthesis|Part_combine|Percent_repeat|Phrasing_slur|Piano_pedal_align|Piano_pedal|Pitch_squash|Pitched_trill|Repeat_acknowledge|Repeat_tie|Rest_collision|Rest|Rhythmic_column|Scheme|Script_column|Script|Script_row">
45 <!ENTITY engraver2 "Separating_line_group|Slash_repeat|Slur|Spacing|Span_arpeggio|Span_bar|Spanner_break_forbid|Staff_collecting|Staff_symbol|Stanza_number_align|Stanza_number|Stem|String_number|Swallow|System_start_delimiter|Tab_harmonic|Tab_note_heads|Tab_staff_symbol|Text|Text_spanner|Tie|Time_signature|Trill_spanner|Tuplet|Tweak|Vaticana_ligature|Vertical_align|Vertically_spaced_contexts|Volta">
46 <!ENTITY engravers00 "(?:&engraver0;)_engraver">
47 <!ENTITY engravers01 "(?:&engraver1;)_engraver">
48 <!ENTITY engravers02 "(?:&engraver2;)_engraver">
49 <!ENTITY engravers1 "(?:&performer;)_performer">
50 <!ENTITY engravers2 "(?:&translator;)_translator">
51
52 <!ENTITY schemename "[a-zA-Z#][^\s(){}[\];$&quot;]*">
53 <!ENTITY schemefunc0 "\b(define|defined\?|define\*(-public)?|define-(\*|builtin-markup-(list-)?command|class|(extra-)?display-method|fonts?|grob-property|ly-syntax(-loc|-simple)?|macro(-public)?|markup-(list-)command|method|module|music-function|post-event-display-method|public(-macro|-toplevel)?|safe-public|span-event-display-method)|defmacro(\*(-public)?)?|lambda\*?|and|or|if|cond|case|let\*?|letrec|begin|do|delay|set!|else|(quasi)?quote|unquote(-splicing)?|(define|let|letrec)-syntax|syntax-rules)(?=($|\s|\)))">
54 <!ENTITY schemefunc1 "\b(not|boolean\?|eq\?|eqv\?|equal\?|pair\?|cons|set-c[ad]r!|c[ad]{1,4}r|null\?|list\?|list|length|append|reverse|list-ref|mem[qv]|member|ass[qv]|assoc|symbol\?|symbol-&gt;string|string-&gt;symbol|number\?|complex\?|real\?|rational\?|integer\?|exact\?|inexact\?|zero\?|positive\?|negative\?|odd\?|even\?|max|min|abs|quotient|remainder|modulo|gcd|lcm|numerator|denominator|floor|ceiling|truncate|round|rationalize|exp|log|sin|cos|tan|asin|acos|atan|sqrt|expt|make-rectangular|make-polar|real-part|imag-part|magnitude|angle|exact-&gt;inexact|inexact-&gt;exact|number-&gt;string|string-&gt;number)(?=($|\s|\)))">
55 <!ENTITY schemefunc2 "\b(char((-ci)?(=\?|&lt;\?|&gt;\?|&lt;=\?|&gt;=\?)|-alphabetic\?|\?|-numeric\?|-whitespace\?|-upper-case\?|-lower-case\?|-&gt;integer|-upcase|-downcase|-ready\?)|integer-&gt;char|make-string|string(\?|-copy|-fill!|-length|-ref|-set!|(-ci)?(=\?|&lt;\?|&gt;\?|&lt;=\?|&gt;=\?)|-append)|substring|make-vector|vector(\?|-length|-ref|-set!|-fill!)?|procedure\?|apply|map|for-each|force|call-with-(current-continuation|(in|out)put-file)|(in|out)put-port\?|current-(in|out)put-port|open-(in|out)put-file|close-(in|out)put-port|eof-object\?|read|(read|peek)-char|write(-char)?|display|newline|call/cc|list-tail|string-&gt;list|list-&gt;string|vector-&gt;list|list-&gt;vector|with-input-from-file|with-output-to-file|load|transcript-(on|off)|eval|dynamic-wind|port\?|values|call-with-values|(scheme-report-|null-|interaction-)environment)(?=($|\s|\)))">
56 ]>
57 <language name="LilyPond" section="Other"
58 style="lilypond" indenter="lilypond"
59 version="11" kateversion="5.0"
60 extensions="*.ly;*.LY;*.ily;*.ILY;*.lyi;*.LYI"
61 mimetype="text/x-lilypond"
62 author="Wilbert Berendsen ([email protected])" license="LGPL">
63
64 <!--
65
66 Fall 2010
67 Minor updates by Wilbert Berendsen
68
69 Changes:
70 - add some new commands (\path, \eyeglasses, etc), contexts and grobs for LilyPond 2.14
71 - cleaned up papervars mess by using nested entities categorizing different variables
72
73 November, 2009
74 Minor updates by Wilbert Berendsen
75
76 Changes:
77 - add makeClusters
78 - fix chords in drummode
79
80 October, 2008
81 Minor updates by Wilbert Berendsen
82
83 Changes:
84 - More new LilyPond commands (2.12) and some more deprecated words
85 - Match deprecated properties after header vars
86 - Special case \tempo command
87
88 January, 2008
89 Fully rewritten by Wilbert Berendsen ([email protected])
90
91 Changes:
92 - correctly parse pitches, chords, durations, etc. marking often made mistakes as invalid
93 - speed up by shortening contexts, e.g. branch out on a \, instead of RegExpr'ing all \commands
94 - recognize some contexts like \layout, \with, \header to colorcode variables, engravers, etc. only there
95 - recognize lilypond words like ChoirStaff etc. only in sections and after \set, \override etc.
96 - highlight some standard Scheme function names
97 - add \figuremode recognition
98 - all Scheme stuff has a nice, very light background, to show where Lilypond is in Scheme mode.
99 - mark some deprecated (pre 2.12) LilyPond commands and properties
100
101 October, 2007
102 New version by Wilbert Berendsen ([email protected])
103
104 Changes:
105 - better recognition of being inside lyrics, drums, notes, chords and markup sections
106 - detect block comments %{ %}
107 - links to ##Comments in comments (e.g. TODO, FIXME)
108 - detect lilypond inside scheme #{ #}
109 - detect \score inside \markup, etc.
110 - helps with some often made errors like forgetting spaces around lyric extenders and hyphens
111 - more scheme improvements: strings, numbers, $substitutions, lilypond objects
112 - highlights many variables, commands, lilypond objects, properties, engravers, etc.
113 - by using entities for many regexps the main syntax checking parts remain legible, and the file more maintainable.
114
115 I borrowed some colors and the drum names from Andrea Primiani's first version (August, 2004).
116
117 -->
118
119 <highlighting>
120 <list name="contexts">
121 <item>ChoirStaff</item>
122 <item>ChordNames</item>
123 <item>CueVoice</item>
124 <item>Devnull</item>
125 <item>DrumStaff</item>
126 <item>DrumVoice</item>
127 <item>Dynamics</item>
128 <item>FiguredBass</item>
129 <item>FretBoards</item>
130 <item>Global</item>
131 <item>GrandStaff</item>
132 <item>GregorianTranscriptionStaff</item>
133 <item>GregorianTranscriptionVoice</item>
134 <item>Lyrics</item>
135 <item>MensuralStaff</item>
136 <item>MensuralVoice</item>
137 <item>NoteNames</item>
138 <item>PianoStaff</item>
139 <item>RhythmicStaff</item>
140 <item>Score</item>
141 <item>Staff</item>
142 <item>StaffGroup</item>
143 <item>TabStaff</item>
144 <item>TabVoice</item>
145 <item>Timing</item>
146 <item>VaticanaStaff</item>
147 <item>VaticanaVoice</item>
148 <item>Voice</item>
149 </list>
150 <list name="deprecatedcontexts">
151 <item>InnerChoirStaff</item>
152 <item>InnerStaffGroup</item>
153 </list>
154 <list name="layoutobjects">
155 <item>Accidental</item>
156 <item>AccidentalCautionary</item>
157 <item>AccidentalPlacement</item>
158 <item>AccidentalSuggestion</item>
159 <item>Ambitus</item>
160 <item>AmbitusAccidental</item>
161 <item>AmbitusLine</item>
162 <item>AmbitusNoteHead</item>
163 <item>Arpeggio</item>
164 <item>BalloonTextItem</item>
165 <item>BarLine</item>
166 <item>BarNumber</item>
167 <item>BassFigure</item>
168 <item>BassFigureAlignment</item>
169 <item>BassFigureAlignmentPositioning</item>
170 <item>BassFigureBracket</item>
171 <item>BassFigureContinuation</item>
172 <item>BassFigureLine</item>
173 <item>Beam</item>
174 <item>BendAfter</item>
175 <item>BreakAlignGroup</item>
176 <item>BreakAlignment</item>
177 <item>BreathingSign</item>
178 <item>ChordName</item>
179 <item>Clef</item>
180 <item>ClusterSpanner</item>
181 <item>ClusterSpannerBeacon</item>
182 <item>CombineTextScript</item>
183 <item>Custos</item>
184 <item>DotColumn</item>
185 <item>Dots</item>
186 <item>DoublePercentRepeat</item>
187 <item>DoublePercentRepeatCounter</item>
188 <item>DynamicLineSpanner</item>
189 <item>DynamicText</item>
190 <item>DynamicTextSpanner</item>
191 <item>Episema</item>
192 <item>Fingering</item>
193 <item>FretBoard</item>
194 <item>Glissando</item>
195 <item>GraceSpacing</item>
196 <item>GridLine</item>
197 <item>GridPoint</item>
198 <item>Hairpin</item>
199 <item>HarmonicParenthesesItem</item>
200 <item>HorizontalBracket</item>
201 <item>InstrumentName</item>
202 <item>InstrumentSwitch</item>
203 <item>KeyCancellation</item>
204 <item>KeySignature</item>
205 <item>LaissezVibrerTie</item>
206 <item>LaissezVibrerTieColumn</item>
207 <item>LedgerLineSpanner</item>
208 <item>LeftEdge</item>
209 <item>LigatureBracket</item>
210 <item>LyricExtender</item>
211 <item>LyricHyphen</item>
212 <item>LyricSpace</item>
213 <item>LyricText</item>
214 <item>MeasureGrouping</item>
215 <item>MelodyItem</item>
216 <item>MensuralLigature</item>
217 <item>MetronomeMark</item>
218 <item>MultiMeasureRest</item>
219 <item>MultiMeasureRestNumber</item>
220 <item>MultiMeasureRestText</item>
221 <item>NonMusicalPaperColumn</item>
222 <item>NoteCollision</item>
223 <item>NoteColumn</item>
224 <item>NoteHead</item>
225 <item>NoteName</item>
226 <item>NoteSpacing</item>
227 <item>OctavateEight</item>
228 <item>OttavaBracket</item>
229 <item>PaperColumn</item>
230 <item>ParenthesesItem</item>
231 <item>PercentRepeat</item>
232 <item>PercentRepeatCounter</item>
233 <item>PhrasingSlur</item>
234 <item>PianoPedalBracket</item>
235 <item>RehearsalMark</item>
236 <item>RepeatSlash</item>
237 <item>RepeatTie</item>
238 <item>RepeatTieColumn</item>
239 <item>Rest</item>
240 <item>RestCollision</item>
241 <item>Script</item>
242 <item>ScriptColumn</item>
243 <item>ScriptRow</item>
244 <item>SeparationItem</item>
245 <item>Slur</item>
246 <item>SostenutoPedal</item>
247 <item>SostenutoPedalLineSpanner</item>
248 <item>SpacingSpanner</item>
249 <item>SpanBar</item>
250 <item>StaffGrouper</item>
251 <item>StaffSpacing</item>
252 <item>StaffSymbol</item>
253 <item>StanzaNumber</item>
254 <item>Stem</item>
255 <item>StemTremolo</item>
256 <item>StringNumber</item>
257 <item>StrokeFinger</item>
258 <item>SustainPedal</item>
259 <item>SustainPedalLineSpanner</item>
260 <item>System</item>
261 <item>SystemStartBar</item>
262 <item>SystemStartBrace</item>
263 <item>SystemStartBracket</item>
264 <item>SystemStartSquare</item>
265 <item>TabNoteHead</item>
266 <item>TextScript</item>
267 <item>TextSpanner</item>
268 <item>Tie</item>
269 <item>TieColumn</item>
270 <item>TimeSignature</item>
271 <item>TrillPitchAccidental</item>
272 <item>TrillPitchGroup</item>
273 <item>TrillPitchHead</item>
274 <item>TrillSpanner</item>
275 <item>TupletBracket</item>
276 <item>TupletNumber</item>
277 <item>UnaCordaPedal</item>
278 <item>UnaCordaPedalLineSpanner</item>
279 <item>VaticanaLigature</item>
280 <item>VerticalAlignment</item>
281 <item>VerticalAxisGroup</item>
282 <item>VoiceFollower</item>
283 <item>VoltaBracket</item>
284 <item>VoltaBracketSpanner</item>
285 </list>
286 <list name="properties">
287 <item>aDueText</item>
288 <item>alignAboveContext</item>
289 <item>alignBassFigureAccidentals</item>
290 <item>alignBelowContext</item>
291 <item>allowBeamBreak</item>
292 <item>associatedVoice</item>
293 <item>autoAccidentals</item>
294 <item>autoBeamCheck</item>
295 <item>autoBeamSettings</item>
296 <item>autoBeaming</item>
297 <item>autoCautionaries</item>
298 <item>automaticBars</item>
299 <item>barAlways</item>
300 <item>barCheckSynchronize</item>
301 <item>barNumberVisibility</item>
302 <item>baseMoment</item>
303 <item>bassFigureFormatFunction</item>
304 <item>bassStaffProperties</item>
305 <item>beamExceptions</item>
306 <item>beatGrouping</item>
307 <item>beatLength</item>
308 <item>beatStructure</item>
309 <item>chordChanges</item>
310 <item>chordNameExceptions</item>
311 <item>chordNameExceptionsFull</item>
312 <item>chordNameExceptionsPartial</item>
313 <item>chordNameFunction</item>
314 <item>chordNameSeparator</item>
315 <item>chordNoteNamer</item>
316 <item>chordPrefixSpacer</item>
317 <item>chordRootNamer</item>
318 <item>clefGlyph</item>
319 <item>clefOctavation</item>
320 <item>clefPosition</item>
321 <item>connectArpeggios</item>
322 <item>countPercentRepeats</item>
323 <item>createKeyOnClefChange</item>
324 <item>createSpacing</item>
325 <item>crescendoSpanner</item>
326 <item>crescendoText</item>
327 <item>currentBarNumber</item>
328 <item>decrescendoSpanner</item>
329 <item>decrescendoText</item>
330 <item>defaultBarType</item>
331 <item>doubleSlurs</item>
332 <item>doubleRepeatType</item>
333 <item>drumPitchTable</item>
334 <item>drumStyleTable</item>
335 <item>dynamicAbsoluteVolumeFunction</item>
336 <item>explicitClefVisibility</item>
337 <item>explicitKeySignatureVisibility</item>
338 <item>extendersOverRests</item>
339 <item>extraNatural</item>
340 <item>figuredBassAlterationDirection</item>
341 <item>figuredBassCenterContinuations</item>
342 <item>figuredBassFormatter</item>
343 <item>figuredBassPlusDirection</item>
344 <item>fingeringOrientations</item>
345 <item>firstClef</item>
346 <item>followVoice</item>
347 <item>fontSize</item>
348 <item>forbidBreak</item>
349 <item>forceClef</item>
350 <item>gridInterval</item>
351 <item>hairpinToBarline</item>
352 <item>harmonicAccidentals</item>
353 <item>highStringOne</item>
354 <item>ignoreBarChecks</item>
355 <item>ignoreFiguredBassRest</item>
356 <item>ignoreMelismata</item>
357 <item>implicitBassFigures</item>
358 <item>implicitTimeSignatureVisibility</item>
359 <item>instrumentCueName</item>
360 <item>instrumentEqualizer</item>
361 <item>instrumentName</item>
362 <item>instrumentTransposition</item>
363 <item>internalBarNumber</item>
364 <item>keepAliveInterfaces</item>
365 <item>keyAlterationOrder</item>
366 <item>keySignature</item>
367 <item>lyricMelismaAlignment</item>
368 <item>majorSevenSymbol</item>
369 <item>markFormatter</item>
370 <item>maximumFretStretch</item>
371 <item>measureLength</item>
372 <item>measurePosition</item>
373 <item>melismaBusyProperties</item>
374 <item>metronomeMarkFormatter</item>
375 <item>middleCClefPosition</item>
376 <item>middleCOffset</item>
377 <item>middleCPosition</item>
378 <item>midiInstrument</item>
379 <item>midiMaximumVolume</item>
380 <item>midiMinimumVolume</item>
381 <item>minimumFret</item>
382 <item>minimumPageTurnLength</item>
383 <item>minimumRepeatLengthForPageTurn</item>
384 <item>noteToFretFunction</item>
385 <item>ottavation</item>
386 <item>output</item>
387 <item>pedalSostenutoStrings</item>
388 <item>pedalSostenutoStyle</item>
389 <item>pedalSustainStrings</item>
390 <item>pedalSustainStyle</item>
391 <item>pedalUnaCordaStrings</item>
392 <item>pedalUnaCordaStyle</item>
393 <item>printKeyCancellation</item>
394 <item>printOctaveNames</item>
395 <item>printPartCombineTexts</item>
396 <item>proportionalNotationDuration</item>
397 <item>recordEventSequence</item>
398 <item>rehearsalMark</item>
399 <item>repeatCommands</item>
400 <item>restNumberThreshold</item>
401 <item>scriptDefinitions</item>
402 <item>shapeNoteStyles</item>
403 <item>shortInstrumentName</item>
404 <item>shortVocalName</item>
405 <item>skipBars</item>
406 <item>skipTypesetting</item>
407 <item>soloIIText</item>
408 <item>soloText</item>
409 <item>squashedPosition</item>
410 <item>staffLineLayoutFunction</item>
411 <item>stanza</item>
412 <item>stemLeftBeamCount</item>
413 <item>stemRightBeamCount</item>
414 <item>stringNumberOrientations</item>
415 <item>stringOneTopmost</item>
416 <item>stringTunings</item>
417 <item>strokeFingerOrientations</item>
418 <item>subdivideBeams</item>
419 <item>suggestAccidentals</item>
420 <item>systemStartDelimiter</item>
421 <item>systemStartDelimiterHierarchy</item>
422 <item>tablatureFormat</item>
423 <item>tempoUnitCount</item>
424 <item>tempoUnitDuration</item>
425 <item>tempoWholesPerMinute</item>
426 <item>tieWaitForNote</item>
427 <item>timeSignatureFraction</item>
428 <item>timing</item>
429 <item>tonic</item>
430 <item>topLevelAlignment</item>
431 <item>trebleStaffProperties</item>
432 <item>tremoloFlags</item>
433 <item>tupletFullLength</item>
434 <item>tupletFullLengthNote</item>
435 <item>tupletSpannerDuration</item>
436 <item>useBassFigureExtenders</item>
437 <item>verticallySpacedContexts</item>
438 <item>vocalName</item>
439 <item>voltaOnThisStaff</item> <!-- gone in 2.12 and 2.13 -->
440 <item>voltaSpannerDuration</item>
441 <item>whichBar</item>
442 </list>
443 <list name="deprecatedproperties">
444 <item>barNumberAlignSymbol</item>
445 <item>centralCPosition</item>
446 <item>extraVerticalExtent</item>
447 <item>fingerHorizontalDirection</item>
448 <item>instr</item>
449 <item>instrument</item>
450 <item>keyAccidentalOrder</item>
451 <item>minimumVerticalExtent</item>
452 <item>rehearsalMarkAlignSymbol</item>
453 <item>soloADue</item>
454 <item>tupletNumberFormatFunction</item>
455 <item>vocNam</item>
456 </list>
457 <list name="musicexpressions">
458 <item>AbsoluteDynamicEvent</item>
459 <item>AnnotateOutputEvent</item>
460 <item>ApplyContext</item>
461 <item>ApplyOutputEvent</item>
462 <item>ArpeggioEvent</item>
463 <item>ArticulationEvent</item>
464 <item>AutoChangeMusic</item>
465 <item>BarCheck</item>
466 <item>BassFigureEvent</item>
467 <item>BeamEvent</item>
468 <item>BeamForbidEvent</item>
469 <item>BendAfterEvent</item>
470 <item>BreathingEvent</item>
471 <item>ClusterNoteEvent</item>
472 <item>ContextChange</item>
473 <item>ContextSpeccedMusic</item>
474 <item>CrescendoEvent</item>
475 <item>DecrescendoEvent</item>
476 <item>Event</item>
477 <item>EventChord</item>
478 <item>ExtenderEvent</item>
479 <item>FingeringEvent</item>
480 <item>GlissandoEvent</item>
481 <item>GraceMusic</item>
482 <item>HarmonicEvent</item>
483 <item>HyphenEvent</item>
484 <item>KeyChangeEvent</item>
485 <item>LabelEvent</item>
486 <item>LaissezVibrerEvent</item>
487 <item>LigatureEvent</item>
488 <item>LineBreakEvent</item>
489 <item>LyricCombineMusic</item>
490 <item>LyricEvent</item>
491 <item>MarkEvent</item>
492 <item>MultiMeasureRestEvent</item>
493 <item>MultiMeasureRestMusic</item>
494 <item>MultiMeasureTextEvent</item>
495 <item>Music</item>
496 <item>NoteEvent</item>
497 <item>NoteGroupingEvent</item>
498 <item>OverrideProperty</item>
499 <item>PageBreakEvent</item>
500 <item>PageTurnEvent</item>
501 <item>PartCombineMusic</item>
502 <item>PercentEvent</item>
503 <item>PercentRepeatedMusic</item>
504 <item>PesOrFlexaEvent</item>
505 <item>PhrasingSlurEvent</item>
506 <item>PropertySet</item>
507 <item>PropertyUnset</item>
508 <item>QuoteMusic</item>
509 <item>RelativeOctaveCheck</item>
510 <item>RelativeOctaveMusic</item>
511 <item>RepeatTieEvent</item>
512 <item>RepeatedMusic</item>
513 <item>RestEvent</item>
514 <item>RevertProperty</item>
515 <item>ScriptEvent</item>
516 <item>SequentialMusic</item>
517 <item>SimultaneousMusic</item>
518 <item>SkipEvent</item>
519 <item>SkipMusic</item>
520 <item>SlurEvent</item>
521 <item>SoloOneEvent</item>
522 <item>SoloTwoEvent</item>
523 <item>SostenutoEvent</item>
524 <item>SpacingSectionEvent</item>
525 <item>SpanEvent</item>
526 <item>StaffSpanEvent</item>
527 <item>StringNumberEvent</item>
528 <item>StrokeFingerEvent</item>
529 <item>SustainEvent</item>
530 <item>TextScriptEvent</item>
531 <item>TextSpanEvent</item>
532 <item>TieEvent</item>
533 <item>TimeScaledMusic</item>
534 <item>TransposedMusic</item>
535 <item>TremoloEvent</item>
536 <item>TremoloRepeatedMusic</item>
537 <item>TremoloSpanEvent</item>
538 <item>TrillSpanEvent</item>
539 <item>TupletSpanEvent</item>
540 <item>UnaCordaEvent</item>
541 <item>UnfoldedRepeatedMusic</item>
542 <item>UnisonoEvent</item>
543 <item>UnrelativableMusic</item>
544 <item>VoiceSeparator</item>
545 <item>VoltaRepeatedMusic</item>
546 </list>
547 <list name="drumpitchnames">
548 <item>acousticbassdrum</item>
549 <item>acousticsnare</item>
550 <item>agh</item>
551 <item>agl</item>
552 <item>bassdrum</item>
553 <item>bd</item>
554 <item>bda</item>
555 <item>boh</item>
556 <item>bohm</item>
557 <item>boho</item>
558 <item>bol</item>
559 <item>bolm</item>
560 <item>bolo</item>
561 <item>cab</item>
562 <item>cabasa</item>
563 <item>cb</item>
564 <item>cgh</item>
565 <item>cghm</item>
566 <item>cgho</item>
567 <item>cgl</item>
568 <item>cglm</item>
569 <item>cglo</item>
570 <item>chinesecymbal</item>
571 <item>cl</item>
572 <item>claves</item>
573 <item>closedhihat</item>
574 <item>cowbell</item>
575 <item>crashcymbal</item>
576 <item>crashcymbala</item>
577 <item>crashcymbalb</item>
578 <item>cuim</item>
579 <item>cuio</item>
580 <item>cymc</item>
581 <item>cymca</item>
582 <item>cymcb</item>
583 <item>cymch</item>
584 <item>cymr</item>
585 <item>cymra</item>
586 <item>cymrb</item>
587 <item>cyms</item>
588 <item>da</item>
589 <item>db</item>
590 <item>dc</item>
591 <item>dd</item>
592 <item>de</item>
593 <item>electricsnare</item>
594 <item>fivedown</item>
595 <item>fiveup</item>
596 <item>fourdown</item>
597 <item>fourup</item>
598 <item>gui</item>
599 <item>guil</item>
600 <item>guiro</item>
601 <item>guis</item>
602 <item>halfopenhihat</item>
603 <item>handclap</item>
604 <item>hc</item>
605 <item>hh</item>
606 <item>hhc</item>
607 <item>hhho</item>
608 <item>hho</item>
609 <item>hhp</item>
610 <item>hiagogo</item>
611 <item>hibongo</item>
612 <item>hiconga</item>
613 <item>highfloortom</item>
614 <item>hightom</item>
615 <item>hihat</item>
616 <item>himidtom</item>
617 <item>hisidestick</item>
618 <item>hitimbale</item>
619 <item>hiwoodblock</item>
620 <item>loagogo</item>
621 <item>lobongo</item>
622 <item>loconga</item>
623 <item>longguiro</item>
624 <item>longwhistle</item>
625 <item>losidestick</item>
626 <item>lotimbale</item>
627 <item>lowfloortom</item>
628 <item>lowmidtom</item>
629 <item>lowoodblock</item>
630 <item>lowtom</item>
631 <item>mar</item>
632 <item>maracas</item>
633 <item>mutecuica</item>
634 <item>mutehibongo</item>
635 <item>mutehiconga</item>
636 <item>mutelobongo</item>
637 <item>muteloconga</item>
638 <item>mutetriangle</item>
639 <item>onedown</item>
640 <item>oneup</item>
641 <item>opencuica</item>
642 <item>openhibongo</item>
643 <item>openhiconga</item>
644 <item>openhihat</item>
645 <item>openlobongo</item>
646 <item>openloconga</item>
647 <item>opentriangle</item>
648 <item>pedalhihat</item>
649 <item>rb</item>
650 <item>ridebell</item>
651 <item>ridecymbal</item>
652 <item>ridecymbala</item>
653 <item>ridecymbalb</item>
654 <item>shortguiro</item>
655 <item>shortwhistle</item>
656 <item>sidestick</item>
657 <item>sn</item>
658 <item>sna</item>
659 <item>snare</item>
660 <item>sne</item>
661 <item>splashcymbal</item>
662 <item>ss</item>
663 <item>ssh</item>
664 <item>ssl</item>
665 <item>tamb</item>
666 <item>tambourine</item>
667 <item>tamtam</item>
668 <item>threedown</item>
669 <item>threeup</item>
670 <item>timh</item>
671 <item>timl</item>
672 <item>tomfh</item>
673 <item>tomfl</item>
674 <item>tomh</item>
675 <item>toml</item>
676 <item>tommh</item>
677 <item>tomml</item>
678 <item>tri</item>
679 <item>triangle</item>
680 <item>trim</item>
681 <item>trio</item>
682 <item>tt</item>
683 <item>twodown</item>
684 <item>twoup</item>
685 <item>ua</item>
686 <item>ub</item>
687 <item>uc</item>
688 <item>ud</item>
689 <item>ue</item>
690 <item>vibraslap</item>
691 <item>vibs</item>
692 <item>wbh</item>
693 <item>wbl</item>
694 <item>whl</item>
695 <item>whs</item>
696 </list>
697 <contexts>
698 <!-- Entry point -->
699 <context name="lilypond" attribute="Normal Text" lineEndContext="#stay">
700 <IncludeRules context="music"/>
701 <RegExpr String="\b[a-z]+\s*=" insensitive="true" lookAhead="true" context="assignment"/>
702 </context>
703
704 <!-- Music expressions -->
705 <context name="music" attribute="Normal Text" lineEndContext="#stay">
706 <AnyChar String="()~" attribute="Slur"/>
707 <AnyChar String="[]" attribute="Beam"/>
708 <AnyChar String="-_^" context="connect"/>
709 <DetectChar char="\" context="musiccommand" lookAhead="true"/>
710 <IncludeRules context="default"/>
711 <DetectChar char="&lt;" attribute="Chord" context="chord"/>
712 <DetectChar char="&gt;" attribute="Invalid"/><!-- chord terminator outsite chord -->
713 <RegExpr String="[a-z]+\d+\.*[,']+" attribute="Invalid"/><!-- pitch-dur-octave i.s.o. pitch-oct-dur -->
714 <RegExpr String="(&rest;|&pitch;)" context="pitch"/>
715 <RegExpr String=":\d*" attribute="Tremolo"/>
716 </context>
717
718 <!-- Default Lilypond code to be recognized e.g. also inside lyrics -->
719 <context name="default" attribute="Normal Text" lineEndContext="#stay">
720 <Detect2Chars char="&lt;" char1="&lt;" attribute="Keyword" beginRegion="simultaneous"/>
721 <Detect2Chars char="&gt;" char1="&gt;" attribute="Keyword" endRegion="simultaneous"/>
722 <DetectChar char="{" attribute="Keyword" beginRegion="sequential"/>
723 <DetectChar char="}" attribute="Keyword" endRegion="sequential"/>
724 <DetectChar char="|" attribute="Check"/>
725 <DetectChar char="\" context="command" lookAhead="true"/>
726 <IncludeRules context="basic"/>
727 </context>
728
729 <!-- Basic Lilypond syntax that also works inside markup -->
730 <context name="basic" attribute="Normal Text" lineEndContext="#stay">
731 <Detect2Chars char="%" char1="{" context="commentblock" beginRegion="comment"/>
732 <DetectChar char="%" context="commentline"/>
733 <DetectChar char="&quot;" context="string"/>
734 <DetectChar char="#" context="scheme"/>
735 <DetectChar char="$" context="schemesub"/>
736 </context>
737
738 <context name="musiccommand" attribute="Normal Text" lineEndContext="#pop"
739 fallthrough="true" fallthroughContext="#pop">
740 <RegExpr String="\\((&dynamics;)&b;|[&lt;!&gt;])" attribute="Dynamic"/>
741 <RegExpr String="\\(&scripts;)&b;" attribute="Articulation"/>
742 <RegExpr String="\\[()]" attribute="Slur"/>
743 <RegExpr String="\\[][]" attribute="Beam"/>
744 <IncludeRules context="command"/>
745 </context>
746
747 <context name="command" attribute="Normal Text" lineEndContext="#pop"
748 fallthrough="true" fallthroughContext="#pop">
749 <Detect2Chars char="\" char1="\" attribute="Keyword"/>
750 <RegExpr String="\\note(mode|s)&b;" context="notemode"/>
751 <RegExpr String="\\drum(mode|s)&b;" context="drummode"/>
752 <RegExpr String="\\chord(mode|s)&b;" context="chordmode"/>
753 <RegExpr String="\\figure(mode|s)&b;" context="figuremode"/>
754 <RegExpr String="\\(lyric(mode|s)|addlyrics)&b;" context="lyricmode"/>
755 <RegExpr String="\\lyricsto&b;" context="lyricsto"/>
756 <RegExpr String="\\markup(lines)?&b;" attribute="Markup" context="markup"/>
757 <RegExpr String="\\(header|paper|layout|midi|with)\b" context="section"/>
758 <RegExpr String="\\(new|context|change)\b" attribute="Keyword" context="context"/>
759 <RegExpr String="\\(un)?set\b" attribute="Keyword" context="set"/>
760 <RegExpr String="\\(override(Property)?|revert)&b;" attribute="Keyword" context="override"/>
761 <RegExpr String="\\skip&b;" attribute="Command" context="duration"/>
762 <RegExpr String="\\tempo&b;" attribute="Command" context="tempo"/>
763 <RegExpr String="\\(&keywords;)&b;" attribute="Keyword"/>
764 <RegExpr String="\\(&commands-heads;|&commands-other1;|&commands-other2;|&commands-other3;|&commands-other4;|&commands-other5;|&commands-other6;|&commands-other7;)&b;" attribute="Command"/>
765 <RegExpr String="\\(&toplevelvars;)&b;" attribute="Variable"/>
766 <RegExpr String="\\(&deprecatedkeywords;)&b;" attribute="Deprecated Keyword"/>
767 <RegExpr String="\\(&deprecatedcommands;)&b;" attribute="Deprecated Command"/>
768 <RegExpr String="\\(translator|newcontext)\b" attribute="Deprecated Keyword" context="context"/>
769 <RegExpr String="\\property&b;" attribute="Deprecated Keyword" context="override"/>
770 <RegExpr String="\\[A-Za-z]+" attribute="User Command"/>
771 <DetectChar char="\" attribute="Invalid"/>
772 </context>
773
774 <context name="assignment" attribute="Normal Text" lineEndContext="#pop">
775 <RegExpr String="\b(&toplevelvars;)\b" attribute="Variable" context="#pop"/>
776 <RegExpr String="[a-z]+" insensitive="true" attribute="User Command" context="#pop"/>
777 </context>
778
779 <context name="pitch" attribute="Pitch" lineEndContext="#stay"
780 fallthrough="true" fallthroughContext="#pop">
781 <RegExpr String="=\s*('+|,+)?" attribute="Check"/>
782 <AnyChar String="!?"/>
783 <IncludeRules context="duration"/>
784 </context>
785
786 <context name="duration" attribute="Normal Text" lineEndContext="#stay"
787 fallthrough="true" fallthroughContext="#pop">
788 <DetectSpaces attribute="Normal Text"/>
789 <RegExpr String="&duration;" attribute="Duration" context="#pop"/>
790 <RegExpr String="\d+" attribute="Invalid" context="#pop"/><!-- uncaught (wrong) durations -->
791 </context>
792
793 <context name="chord" attribute="Normal Text" lineEndContext="#stay">
794 <DetectChar char="&gt;" context="chordend"/>
795 <RegExpr String="&pitch;" context="chordpitch"/>
796 <AnyChar String="&lt;{}srR" attribute="Invalid"/><!-- no rests in chord allowed -->
797 <IncludeRules context="music"/>
798 </context>
799
800 <context name="chordpitch" attribute="Pitch" lineEndContext="#stay"
801 fallthrough="true" fallthroughContext="#pop">
802 <DetectSpaces attribute="Normal Text"/>
803 <RegExpr String="=\s*('+|,+)?" attribute="Check"/>
804 <!-- no duration in chord allowed -->
805 <!-- catch other (wrong) durations as well -->
806 <RegExpr String="&duration;|\d+" attribute="Invalid" context="#pop"/>
807 </context>
808
809 <context name="chordend" attribute="Chord" lineEndContext="#stay"
810 fallthrough="true" fallthroughContext="#pop#pop">
811 <DetectSpaces attribute="Normal Text"/>
812 <RegExpr String="&duration;" attribute="Duration" context="#pop#pop"/>
813 </context>
814
815 <context name="commentline" attribute="Comment" lineEndContext="#pop">
816 <DetectSpaces />
817 <IncludeRules context="##Comments"/>
818 </context>
819
820 <context name="commentblock" attribute="Comment" lineEndContext="#stay">
821 <Detect2Chars char="%" char1="}" attribute="Comment" context="#pop" endRegion="comment"/>
822 <DetectSpaces />
823 <IncludeRules context="##Comments"/>
824 </context>
825
826 <context name="string" attribute="Quoted Text" lineEndContext="#stay">
827 <DetectChar char="&quot;" attribute="Quoted Text" context="#pop"/>
828 <Detect2Chars char="\" char1="\"/>
829 <Detect2Chars char="\" char1="&quot;"/>
830 </context>
831
832 <context name="connect" attribute="Articulation" lineEndContext="#stay"
833 fallthrough="true" fallthroughContext="#pop">
834 <AnyChar String=".-+|&gt;^_12345" attribute="Articulation" context="#pop"/>
835 </context>
836
837 <!-- Scheme -->
838 <context name="scheme" attribute="Scheme" lineEndContext="#stay"
839 fallthrough="true" fallthroughContext="scheme2">
840 <DetectSpaces/>
841 </context>
842
843 <context name="scheme2" attribute="Scheme" lineEndContext="#pop#pop">
844 <DetectChar char="(" attribute="Scheme Keyword" context="scheme3" beginRegion="scheme"/>
845 <IncludeRules context="schemerules"/>
846 <DetectSpaces lookAhead="true" context="#pop#pop"/>
847 </context>
848
849 <context name="scheme3" attribute="Scheme" lineEndContext="#stay">
850 <DetectChar char=")" attribute="Scheme Keyword" context="#pop#pop#pop" endRegion="scheme"/>
851 <IncludeRules context="schemerules"/>
852 </context>
853
854 <context name="schemerules" attribute="Scheme" lineEndContext="#stay">
855 <DetectChar char="(" context="schemerules" beginRegion="scheme"/>
856 <DetectChar char=")" context="#pop" endRegion="scheme"/>
857 <DetectChar char="&quot;" context="schemestring"/>
858 <DetectChar char=";" context="schemecommentline"/>
859 <DetectChar char="$" context="schemesub"/>
860 <DetectChar char="'" context="schemequote"/>
861 <Detect2Chars char="#" char1="!" context="schemecommentblock" beginRegion="schemecomment"/>
862 <Detect2Chars char="#" char1="{" attribute="Scheme Keyword" context="schemelily" beginRegion="schemelily"/>
863 <keyword String="musicexpressions" attribute="Scheme Keyword"/>
864 <keyword String="contexts" attribute="Scheme Keyword"/>
865 <keyword String="layoutobjects" attribute="Scheme Keyword"/>
866 <RegExpr String="[-+]?(\d+(\.\d+)?|\.\d+)|#([tfTF]|[bB][-+]?[01.]+|[oO][-+]?[0-7.]+|[dD][-+]?[0-9.]+|[xX][-+]?[0-9a-fA-F.]+)|[+-](inf|nan)\.0" attribute="Scheme Value"/>
867 <RegExpr String="&schemefunc0;|&schemefunc1;|&schemefunc2;" attribute="Scheme Keyword"/>
868 <RegExpr String="&schemename;"/>
869 </context>
870
871 <context name="schemequote" attribute="Scheme" lineEndContext="#pop"
872 fallthrough="true" fallthroughContext="#pop">
873 <RegExpr String="&schemefunc0;|&schemefunc1;|&schemefunc2;"/>
874 </context>
875
876 <context name="schemelily" attribute="Normal Text" lineEndContext="#stay">
877 <Detect2Chars char="#" char1="}" attribute="Scheme Keyword" context="#pop" endRegion="schemelily"/>
878 <IncludeRules context="lilypond"/>
879 </context>
880
881 <context name="schemecommentline" attribute="Scheme Comment" lineEndContext="#pop">
882 <DetectSpaces />
883 <IncludeRules context="##Comments"/>
884 </context>
885
886 <context name="schemecommentblock" attribute="Scheme Comment" lineEndContext="#stay">
887 <Detect2Chars char="!" char1="#" attribute="Scheme Comment" context="#pop" endRegion="schemecomment"/>
888 <DetectSpaces />
889 <IncludeRules context="##Comments"/>
890 </context>
891
892 <context name="schemesub" attribute="Scheme Subst" lineEndContext="#pop"
893 fallthrough="true" fallthroughContext="#pop">
894 <RegExpr String="&schemename;" attribute="Scheme Subst" context="#pop"/>
895 </context>
896
897 <context name="schemestring" attribute="Scheme String" lineEndContext="#stay">
898 <DetectChar char="&quot;" attribute="Scheme String" context="#pop"/>
899 <RegExpr String="\\[0fnrtav\\&quot;]"/>
900 </context>
901
902 <!-- NoteMode -->
903 <context name="notemode" attribute="Other Mode" lineEndContext="#stay"
904 fallthrough="true" fallthroughContext="#pop">
905 <DetectChar char="{" attribute="Keyword" context="notemode2" beginRegion="sequential"/>
906 <DetectSpaces/>
907 </context>
908
909 <context name="notemode2" attribute="Normal Text" lineEndContext="#stay">
910 <DetectChar char="}" attribute="Keyword" context="#pop#pop" endRegion="sequential"/>
911 <IncludeRules context="noterules"/>
912 </context>
913
914 <context name="noterules" attribute="Normal Text" lineEndContext="#stay">
915 <DetectChar char="{" attribute="Keyword" context="noterules" beginRegion="sequential"/>
916 <DetectChar char="}" attribute="Keyword" context="#pop" endRegion="sequential"/>
917 <IncludeRules context="music"/>
918 </context>
919
920 <!-- Drummode -->
921 <context name="drummode" attribute="Other Mode" lineEndContext="#stay"
922 fallthrough="true" fallthroughContext="#pop">
923 <DetectChar char="{" attribute="Keyword" context="drummode2" beginRegion="sequential"/>
924 <DetectSpaces/>
925 </context>
926
927 <context name="drummode2" attribute="Normal Text" lineEndContext="#stay">
928 <DetectChar char="}" attribute="Keyword" context="#pop#pop" endRegion="sequential"/>
929 <IncludeRules context="drumrules"/>
930 </context>
931
932 <context name="drumrules" attribute="Normal Text" lineEndContext="#stay">
933 <DetectChar char="{" attribute="Keyword" context="drumrules" beginRegion="sequential"/>
934 <DetectChar char="}" attribute="Keyword" context="#pop" endRegion="sequential"/>
935 <RegExpr String="&lt;(?!&lt;)" attribute="Chord" context="drumchord"/>
936 <keyword attribute="Other Text" String="drumpitchnames" context="duration"/>
937 <IncludeRules context="music"/>
938 </context>
939
940 <context name="drumchord" attribute="Normal Text" lineEndContext="#stay">
941 <keyword attribute="Other Text" String="drumpitchnames"/>
942 <IncludeRules context="chord"/>
943 </context>
944
945 <!-- Chordmode -->
946 <context name="chordmode" attribute="Other Mode" lineEndContext="#stay"
947 fallthrough="true" fallthroughContext="#pop">
948 <DetectChar char="{" attribute="Keyword" context="chordmode2" beginRegion="sequential"/>
949 <DetectSpaces/>
950 </context>
951
952 <context name="chordmode2" attribute="Normal Text" lineEndContext="#stay">
953 <DetectChar char="}" attribute="Keyword" context="#pop#pop" endRegion="sequential"/>
954 <IncludeRules context="chordrules"/>
955 </context>
956
957 <context name="chordrules" attribute="Normal Text" lineEndContext="#stay">
958 <DetectChar char="{" attribute="Keyword" context="chordrules" beginRegion="sequential"/>
959 <DetectChar char="}" attribute="Keyword" context="#pop" endRegion="sequential"/>
960 <RegExpr attribute="Other Text" String=":?([\.^]?\d+[-+]?|(m|dim|aug|maj|sus)&b;)*(/\+?&pitch;)?"/>
961 <IncludeRules context="music"/>
962 </context>
963
964 <!-- Figuremode -->
965 <context name="figuremode" attribute="Other Mode" lineEndContext="#stay"
966 fallthrough="true" fallthroughContext="#pop">
967 <DetectChar char="{" attribute="Keyword" context="figuremode2" beginRegion="sequential"/>
968 <DetectSpaces/>
969 </context>
970
971 <context name="figuremode2" attribute="Normal Text" lineEndContext="#stay">
972 <DetectChar char="}" attribute="Keyword" context="#pop#pop" endRegion="sequential"/>
973 <IncludeRules context="figurerules"/>
974 </context>
975
976 <context name="figurerules" attribute="Normal Text" lineEndContext="#stay">
977 <DetectChar char="{" attribute="Keyword" context="figurerules" beginRegion="sequential"/>
978 <DetectChar char="}" attribute="Keyword" context="#pop" endRegion="sequential"/>
979 <DetectChar char="&lt;" attribute="Chord" context="figure"/>
980 <RegExpr String="&rest;" attribute="Pitch" context="duration"/>
981 <IncludeRules context="default"/>
982 </context>
983
984 <context name="figure" attribute="Normal Text" lineEndContext="#stay">
985 <DetectChar char="&gt;" attribute="Chord" context="chordend"/>
986 <IncludeRules context="basic"/>
987 <RegExpr String="\\markup(lines)?&b;" attribute="Markup" context="markup"/>
988 <RegExpr String="\\skip&b;" attribute="Command" context="duration"/>
989 </context>
990
991 <!-- Lyrics -->
992 <context name="lyricmode" attribute="Lyricmode" lineEndContext="#stay"
993 fallthrough="true" fallthroughContext="#pop">
994 <DetectChar char="{" attribute="Keyword" context="lyricmode2" beginRegion="sequential"/>
995 <DetectSpaces/>
996 </context>
997
998 <context name="lyricmode2" attribute="Lyric Text" lineEndContext="#stay">
999 <DetectChar char="}" attribute="Keyword" context="#pop#pop" endRegion="sequential"/>
1000 <IncludeRules context="lyricrules"/>
1001 </context>
1002
1003 <!-- LyricsTo has extra parameter -->
1004 <context name="lyricsto" attribute="Lyricmode" lineEndContext="#stay"
1005 fallthrough="true" fallthroughContext="#pop">
1006 <RegExpr String="&quot;(\\[&quot;\\]|[^&quot;\\])+&quot;" attribute="Quoted Text" context="lyricsto2"/>
1007 <RegExpr String="[A-Za-z]+" attribute="Normal Text" context="lyricsto2"/>
1008 <DetectSpaces/>
1009 </context>
1010
1011 <context name="lyricsto2" attribute="Normal Text" lineEndContext="#stay"
1012 fallthrough="true" fallthroughContext="#pop#pop">
1013 <DetectChar char="{" attribute="Keyword" context="lyricsto3" beginRegion="sequential"/>
1014 <DetectSpaces/>
1015 </context>
1016
1017 <context name="lyricsto3" attribute="Lyric Text" lineEndContext="#stay">
1018 <DetectChar char="}" attribute="Keyword" context="#pop#pop#pop" endRegion="sequential"/>
1019 <IncludeRules context="lyricrules"/>
1020 </context>
1021
1022 <context name="lyricrules" attribute="Lyric Text" lineEndContext="#stay">
1023 <DetectChar char="{" attribute="Keyword" context="lyricrules" beginRegion="sequential"/>
1024 <DetectChar char="}" attribute="Keyword" context="#pop" endRegion="sequential"/>
1025 <RegExpr String="(\w+-{2,}|\w+_{2,}|-{2,}\w+|_{2,}\w+)" attribute="Invalid"/><!-- two hyphens or underscores run together with a word -->
1026 <RegExpr String="&duration;" attribute="Duration"/>
1027 <RegExpr String="(--|__|_)" attribute="Lyricmode"/>
1028 <IncludeRules context="default"/>
1029 <RegExpr String="\S+\}" attribute="Invalid" context="#pop" endRegion="sequential"/>
1030 </context>
1031
1032 <!-- Markup -->
1033 <context name="markup" attribute="Normal Text" lineEndContext="#stay"
1034 fallthrough="true" fallthroughContext="#pop">
1035 <DetectChar char="{" attribute="Keyword" context="markup2" beginRegion="markup"/>
1036 <DetectSpaces/>
1037 <RegExpr String="\\score\b" attribute="Markup" context="notemode"/>
1038 <RegExpr String="\\(&markupwithtextargs;)&b;" attribute="Markup"/>
1039 <RegExpr String="\\(&markupnotextargs;)&b;" attribute="Markup" context="#pop"/>
1040 <DetectChar char="#" context="scheme"/>
1041 <RegExpr String="[^&quot;\s\\#%{}$]+" attribute="Normal Text" context="#pop"/>
1042 </context>
1043
1044 <context name="markup2" attribute="Normal Text" lineEndContext="#stay">
1045 <DetectChar char="}" attribute="Keyword" context="#pop#pop" endRegion="markup"/>
1046 <IncludeRules context="markuprules"/>
1047 </context>
1048
1049 <context name="markuprules" attribute="Normal Text" lineEndContext="#stay">
1050 <DetectChar char="}" attribute="Keyword" context="#pop" endRegion="markup"/>
1051 <DetectChar char="{" attribute="Keyword" context="markuprules" beginRegion="markup"/>
1052 <RegExpr String="\\score\b" attribute="Markup" context="notemode"/>
1053 <RegExpr String="\\(&markupnotextargs;|&markupwithtextargs;)&b;" attribute="Markup"/>
1054 <RegExpr String="\\(&deprecatedmarkup;)&b;" attribute="Deprecated Markup"/>
1055 <RegExpr String="\\[A-Za-z]+(-[A-Za-z]+)*" attribute="User Command"/>
1056 <IncludeRules context="basic"/>
1057 </context>
1058
1059 <!-- \paper, \layout, \midi, \header, \with -->
1060 <context name="section" attribute="Keyword" lineEndContext="#stay"
1061 fallthrough="true" fallthroughContext="#pop">
1062 <DetectChar char="{" attribute="Keyword" context="section2" beginRegion="section"/>
1063 <DetectSpaces/>
1064 </context>
1065
1066 <context name="section2" attribute="Normal Text" lineEndContext="#stay">
1067 <DetectChar char="}" attribute="Keyword" context="#pop#pop" endRegion="section"/>
1068 <IncludeRules context="sectionrules"/>
1069 </context>
1070
1071 <context name="sectionrules" attribute="Normal Text" lineEndContext="#stay">
1072 <DetectChar char="}" attribute="Keyword" context="#pop" endRegion="section"/>
1073 <DetectChar char="{" attribute="Keyword" context="sectionrules" beginRegion="section"/>
1074 <keyword String="contexts" attribute="Context"/>
1075 <keyword String="deprecatedcontexts" attribute="Deprecated Context"/>
1076 <RegExpr String="(&quot;?)\b(?:&engravers00;|&engravers01;|&engravers02;|&engravers1;|&engravers2;)\b\1" attribute="Engraver"/>
1077 <keyword String="layoutobjects" attribute="Layout Object"/>
1078 <keyword String="properties" attribute="Property"/>
1079 <RegExpr String="\b(?:&headervars;|&papervars;|&layoutvars;)\b" attribute="Variable"/>
1080 <keyword String="deprecatedproperties" attribute="Deprecated Property"/>
1081 <IncludeRules context="default"/>
1082 </context>
1083
1084 <!-- \new, \context, \change -->
1085 <context name="context" attribute="Normal Text" lineEndContext="#stay"
1086 fallthrough="true" fallthroughContext="#pop">
1087 <DetectSpaces/>
1088 <keyword String="contexts" attribute="Context" context="context2"/>
1089 <keyword String="deprecatedcontexts" attribute="Deprecated Context" context="context2"/>
1090 <RegExpr String="[A-Za-z]+" attribute="User Command" context="context2"/>
1091 <DetectChar char="{" attribute="Keyword" context="section2" beginRegion="section"/>
1092 </context>
1093
1094 <context name="context2" attribute="Normal Text" lineEndContext="#stay"
1095 fallthrough="true" fallthroughContext="#pop#pop">
1096 <DetectSpaces/>
1097 <RegExpr String="=(\s*[A-Za-z]+)?" attribute="Normal Text" context="#pop#pop"/>
1098 </context>
1099
1100 <!-- \set, \unset -->
1101 <context name="set" attribute="Normal Text" lineEndContext="#stay"
1102 fallthrough="true" fallthroughContext="#pop">
1103 <DetectSpaces/>
1104 <keyword String="contexts" attribute="Context"/>
1105 <keyword String="deprecatedcontexts" attribute="Deprecated Context"/>
1106 <DetectChar char="."/>
1107 <keyword String="properties" attribute="Property" context="#pop"/>
1108 <keyword String="deprecatedproperties" attribute="Deprecated Property" context="#pop"/>
1109 <RegExpr String="[A-Za-z]+" attribute="User Command" context="#pop"/>
1110 </context>
1111
1112 <!-- \override, \overrideProperty, \revert -->
1113 <context name="override" attribute="Normal Text" lineEndContext="#stay"
1114 fallthrough="true" fallthroughContext="#pop">
1115 <DetectSpaces/>
1116 <keyword String="contexts" attribute="Context"/>
1117 <keyword String="deprecatedcontexts" attribute="Deprecated Context"/>
1118 <DetectChar char="."/>
1119 <keyword String="layoutobjects" attribute="Layout Object" context="#pop"/>
1120 <RegExpr String="[A-Za-z]+(?=\s*\.)" attribute="User Command"/>
1121 <RegExpr String="[A-Za-z]+" attribute="User Command" context="#pop"/>
1122 </context>
1123
1124 <!-- special cases for individual commands -->
1125 <!-- \tempo -->
1126 <context name="tempo" attribute="Normal Text" lineEndContext="#stay"
1127 fallthrough="true" fallthroughContext="#pop">
1128 <RegExpr String="\\markup(lines)?&b;" attribute="Markup" context="markup"/>
1129 <RegExpr String="\d+\.*\s*=\s*\d+" attribute="Command" context="#pop"/>
1130 <DetectSpaces/>
1131 <IncludeRules context="basic"/>
1132 </context>
1133
1134 </contexts>
1135 <itemDatas>
1136 <itemData name="Pitch" defStyleNum="dsNormal"/>
1137 <itemData name="Duration" defStyleNum="dsDataType"/>
1138 <itemData name="Slur" defStyleNum="dsChar" bold="true"/>
1139 <itemData name="Dynamic" defStyleNum="dsString" color="#ee5000" bold="true"/>
1140 <itemData name="Articulation" defStyleNum="dsString" color="#ee5000" bold="true"/>
1141 <itemData name="Chord" defStyleNum="dsDataType" bold="true"/>
1142 <itemData name="Beam" defStyleNum="dsDataType" bold="true"/>
1143 <itemData name="Check" defStyleNum="dsDecVal"/>
1144 <itemData name="Tremolo" defStyleNum="dsOthers"/>
1145 <itemData name="Keyword" defStyleNum="dsKeyword"/>
1146 <itemData name="Command" defStyleNum="dsFunction" bold="true"/>
1147 <itemData name="User Command" defStyleNum="dsFunction"/>
1148 <itemData name="Context" defStyleNum="dsDataType" bold="true"/>
1149 <itemData name="Layout Object" defStyleNum="dsDataType"/>
1150 <itemData name="Property" defStyleNum="dsDataType"/>
1151 <itemData name="Variable" defStyleNum="dsDataType"/>
1152 <itemData name="Engraver" defStyleNum="dsDataType"/>
1153 <itemData name="Markup" defStyleNum="dsBaseN" color="#009817"/>
1154 <itemData name="Lyricmode" defStyleNum="dsKeyword" color="#007010"/>
1155 <itemData name="Lyric Text" defStyleNum="dsNormal" color="#007010"/>
1156 <itemData name="Other Mode" defStyleNum="dsKeyword" color="#0094e4"/>
1157 <itemData name="Other Text" defStyleNum="dsNormal" color="#0094e4"/>
1158 <itemData name="Normal Text" defStyleNum="dsNormal"/>
1159 <itemData name="Quoted Text" defStyleNum="dsString"/>
1160 <itemData name="Comment" defStyleNum="dsComment"/>
1161 <itemData name="Scheme" defStyleNum="dsFloat" backgroundColor="#fff6ff"/>
1162 <itemData name="Scheme Keyword" defStyleNum="dsFloat" bold="true" backgroundColor="#fff6ff"/>
1163 <itemData name="Scheme Subst" defStyleNum="dsDecVal" bold="true" backgroundColor="#fff6ff"/>
1164 <itemData name="Scheme Value" defStyleNum="dsDecVal" backgroundColor="#fff6ff"/>
1165 <itemData name="Scheme String" defStyleNum="dsString" backgroundColor="#fff6ff"/>
1166 <itemData name="Scheme Comment" defStyleNum="dsComment" backgroundColor="#fff6ff"/>
1167 <itemData name="Deprecated Keyword" defStyleNum="dsKeyword" backgroundColor="#fcc"/>
1168 <itemData name="Deprecated Command" defStyleNum="dsFunction" backgroundColor="#fcc"/>
1169 <itemData name="Deprecated Property" defStyleNum="dsDataType" backgroundColor="#fcc"/>
1170 <itemData name="Deprecated Context" defStyleNum="dsDataType" bold="true" backgroundColor="#fcc"/>
1171 <itemData name="Deprecated Markup" defStyleNum="dsBaseN" color="#009817" backgroundColor="#fcc"/>
1172 <itemData name="Invalid" defStyleNum="dsError"/>
1173 </itemDatas>
1174 </highlighting>
1175 <general>
1176 <comments>
1177 <comment name="singleLine" start="%"/>
1178 <comment name="multiLine" start="%{" end="%}" region="comment"/>
1179 </comments>
1180 <keywords casesensitive="true" additionalDeliminator="'_0123456789"/>
1181 </general>
1182 </language>
1183 <!--
1184 kate: space-indent on; indent-width 2; replace-tabs on;
1185 -->