Warning, /frameworks/syntax-highlighting/autotests/reference/highlight.ly.ref is written in an unsupported language. File is not indexed.

0001 <Comment>% This is a file to test the Lilypond highlighting features of Katepart.</Comment><br/>
0002 <Comment>% This is NOT a valid lilypond file, because it also shows the</Comment><br/>
0003 <Comment>% highlighting of some invalid lilypond constructs!</Comment><br/>
0004 <Comment>% This is a line comment.</Comment><br/>
0005 <Normal Text></Normal Text><br/>
0006 <Comment>%{</Comment><br/>
0007 <Comment>this is a block comment, that can occur inside a line, or across</Comment><br/>
0008 <Comment>multiple lines.</Comment><br/>
0009 <Comment>%}</Comment><br/>
0010 <Normal Text></Normal Text><br/>
0011 <Keyword>\header {</Keyword><br/>
0012 <Normal Text>  title = </Normal Text><Quoted Text>"Katepart Lilypond syntax highlighting test file"</Quoted Text><br/>
0013 <Normal Text>  </Normal Text><Variable>composer</Variable><Normal Text> = </Normal Text><Comment>%{"Wilbert Berendsen"%}</Comment><Normal Text> </Normal Text><Quoted Text>"Anonymus"</Quoted Text><br/>
0014 <Normal Text>  </Normal Text><Variable>poet</Variable><Normal Text> = </Normal Text><Quoted Text>"The KDE team"</Quoted Text><br/>
0015 <Normal Text>  </Normal Text><Variable>opus</Variable><Normal Text> = </Normal Text><Quoted Text>"1"</Quoted Text><br/>
0016 <Normal Text>  </Normal Text><Variable>copyright</Variable><Normal Text> = </Normal Text><Quoted Text>"Share and enjoy!"</Quoted Text><br/>
0017 <Keyword>}</Keyword><br/>
0018 <Normal Text></Normal Text><br/>
0019 <Keyword>\paper {</Keyword><br/>
0020 <Normal Text>  </Normal Text><Scheme>#</Scheme><Scheme Keyword>(</Scheme Keyword><Scheme>set-paper-size </Scheme><Scheme String>"a4"</Scheme String><Scheme Keyword>)</Scheme Keyword><Normal Text>  </Normal Text><Comment>% a hash introduces scheme</Comment><br/>
0021 <Normal Text>  </Normal Text><Variable>indent</Variable><Normal Text> = 0              </Normal Text><Comment>% recognize variable names inside \paper, \layout etc.</Comment><br/>
0022 <Normal Text>  </Normal Text><Variable>between-system-space</Variable><Normal Text> = 3</Normal Text><Command>\mm</Command><br/>
0023 <Keyword>}</Keyword><br/>
0024 <Normal Text></Normal Text><br/>
0025 <Keyword>\layout {</Keyword><br/>
0026 <Normal Text>  </Normal Text><Keyword>\context</Keyword><Normal Text> </Normal Text><Keyword>{</Keyword><br/>
0027 <Normal Text>    </Normal Text><User Command>\Score</User Command><br/>
0028 <Normal Text>    </Normal Text><Keyword>\remove</Keyword><Normal Text> </Normal Text><Engraver>Bar_number_engraver</Engraver><Normal Text>   </Normal Text><Comment>% recognize engraver names</Comment><br/>
0029 <Normal Text>    </Normal Text><Keyword>\remove</Keyword><Normal Text> </Normal Text><Engraver>"Bar_number_engraver"</Engraver><Normal Text> </Normal Text><Comment>% also when quoted!</Comment><br/>
0030 <Normal Text>  </Normal Text><Keyword>}</Keyword><br/>
0031 <Keyword>}</Keyword><br/>
0032 <Normal Text></Normal Text><br/>
0033 <Comment>% { and << block are folded</Comment><br/>
0034 <Keyword>\score</Keyword><Normal Text> </Normal Text><Keyword>{</Keyword><br/>
0035 <Normal Text>  </Normal Text><Keyword>\new</Keyword><Normal Text> </Normal Text><Context>StaffGroup</Context><Normal Text> </Normal Text><Keyword><<</Keyword><br/>
0036 <Normal Text>    </Normal Text><Keyword>\new</Keyword><Normal Text> </Normal Text><Context>ChordNames</Context><Normal Text> </Normal Text><Other Mode>\chordmode </Other Mode><Keyword>{</Keyword><Normal Text> </Normal Text><Pitch>c</Pitch><Duration>2</Duration><Other Text>sus4/f</Other Text><Normal Text> </Normal Text><Pitch>g</Pitch><Duration>2</Duration><Other Text>/d</Other Text><Normal Text> </Normal Text><Pitch>c</Pitch><Duration>1</Duration><Normal Text> </Normal Text><Keyword>}</Keyword><br/>
0037 <Normal Text>    </Normal Text><Keyword>\new</Keyword><Normal Text> </Normal Text><Context>Staff</Context><Normal Text> </Normal Text><Keyword>\new</Keyword><Normal Text> </Normal Text><Context>Voice</Context><Normal Text> =</Normal Text><Quoted Text>"mel"</Quoted Text><Normal Text> </Normal Text><Keyword>{</Keyword><br/>
0038 <Normal Text>      </Normal Text><Command>\key f</Command><Normal Text> </Normal Text><Command>\major</Command><br/>
0039 <Normal Text>      </Normal Text><Command>\time 4/4</Command><br/>
0040 <Normal Text>      </Normal Text><Command>\partial 4</Command><br/>
0041 <Normal Text>      </Normal Text><Keyword>\set</Keyword><Normal Text> </Normal Text><Context>Staff</Context><Normal Text>.</Normal Text><Property>instrumentName</Property><Normal Text> = </Normal Text><Quoted Text>"Bla."</Quoted Text><br/>
0042 <Normal Text>      </Normal Text><Keyword>\once</Keyword><Normal Text> </Normal Text><Keyword>\override</Keyword><Normal Text> </Normal Text><Context>Staff</Context><Normal Text>.</Normal Text><Layout Object>NoteHead</Layout Object><Normal Text> </Normal Text><Scheme>#'color</Scheme><Normal Text> = </Normal Text><Scheme>#red</Scheme><br/>
0043 <Normal Text>      </Normal Text><Comment>% dynamics, articulations and markup</Comment><br/>
0044 <Normal Text>      </Normal Text><Pitch>c</Pitch><Duration>8</Duration><Dynamic>\p</Dynamic><Normal Text> </Normal Text><Pitch>d</Pitch><Dynamic>\<</Dynamic><Normal Text> </Normal Text><Pitch>e</Pitch><Articulation>-.</Articulation><Normal Text> </Normal Text><Pitch>f</Pitch><Articulation>-></Articulation><Normal Text> </Normal Text><Pitch>g</Pitch><Normal Text> </Normal Text><Pitch>a</Pitch><Dynamic>\f</Dynamic><Normal Text> </Normal Text><Pitch>c</Pitch><Articulation>-5</Articulation><Markup>\markup</Markup><Normal Text> </Normal Text><Keyword>{</Keyword><Normal Text>Hoi</Normal Text><Keyword>}</Keyword><br/>
0045 <Normal Text>      </Normal Text><Other Mode>\notemode </Other Mode><Keyword>{</Keyword><Normal Text> </Normal Text><Pitch>c</Pitch><Normal Text> </Normal Text><Pitch>d</Pitch><Normal Text> </Normal Text><Pitch>e</Pitch><Normal Text> </Normal Text><Pitch>f</Pitch><Normal Text> </Normal Text><Keyword>}</Keyword><br/>
0046 <Normal Text>      </Normal Text><Command>\repeat volta 2</Command><Normal Text> </Normal Text><Keyword>{</Keyword><br/>
0047 <Normal Text>        </Normal Text><Comment>% complex durations are highlighted:</Comment><br/>
0048 <Normal Text>        </Normal Text><Pitch>g</Pitch><Duration>4*2/3</Duration><br/>
0049 <Normal Text>      </Normal Text><Keyword>}</Keyword><br/>
0050 <Normal Text>      </Normal Text><Command>\times 2/3</Command><Normal Text> </Normal Text><Keyword>{</Keyword><Pitch>e</Pitch><Duration>8</Duration><Normal Text> </Normal Text><Pitch>f</Pitch><Normal Text> </Normal Text><Pitch>g</Pitch><Keyword>}</Keyword><br/>
0051 <Normal Text>      </Normal Text><Comment>% there is some error checking:</Comment><br/>
0052 <Normal Text>      </Normal Text><Comment>% often made mistake to have octavemarks after the duration:</Comment><br/>
0053 <Normal Text>      </Normal Text><Invalid>c2'</Invalid><br/>
0054 <Normal Text>      </Normal Text><Comment>% invalid durations are caught:</Comment><br/>
0055 <Normal Text>      </Normal Text><Pitch>g</Pitch><Invalid>3</Invalid><br/>
0056 <Normal Text>    </Normal Text><Keyword>}</Keyword><br/>
0057 <Normal Text>    </Normal Text><Keyword>\context</Keyword><Normal Text> </Normal Text><Context>Lyrics</Context><Normal Text> </Normal Text><Lyricmode>\lyricsto </Lyricmode><Quoted Text>"mel"</Quoted Text><Normal Text> </Normal Text><Keyword>{</Keyword><br/>
0058 <Lyric Text>      </Lyric Text><Keyword>\set</Keyword><Normal Text> </Normal Text><Property>fontSize</Property><Lyric Text> = </Lyric Text><Scheme>#</Scheme><Scheme Value>1</Scheme Value><br/>
0059 <Lyric Text>      this is a line of ly </Lyric Text><Lyricmode>--</Lyricmode><Lyric Text> rics.</Lyric Text><br/>
0060 <Lyric Text>      with</Lyric Text><Duration>4</Duration><Lyric Text> dur </Lyric Text><Lyricmode>--</Lyricmode><Lyric Text> a </Lyric Text><Lyricmode>--</Lyricmode><Lyric Text> tions.</Lyric Text><Duration>2.</Duration><br/>
0061 <Lyric Text>      </Lyric Text><Comment>% errors like forgetting spaces are found:</Comment><br/>
0062 <Lyric Text>      </Lyric Text><Invalid>space--</Invalid><Lyric Text> flight </Lyric Text><Comment>%{i.s.o.%}</Comment><Lyric Text> space </Lyric Text><Lyricmode>--</Lyricmode><Lyric Text> flight</Lyric Text><br/>
0063 <Lyric Text>      space at end for </Lyric Text><Lyricmode>--</Lyricmode><Lyric Text> got </Lyric Text><Lyricmode>--</Lyricmode><Lyric Text> ten as </Lyric Text><Invalid>well.}</Invalid><br/>
0064 <Normal Text>    </Normal Text><br/>
0065 <Normal Text>    </Normal Text><Keyword>\new</Keyword><Normal Text> </Normal Text><Context>DrumStaff</Context><Normal Text> </Normal Text><Other Mode>\drummode </Other Mode><Keyword>{</Keyword><Normal Text> </Normal Text><Other Text>hihat</Other Text><Duration>4</Duration><Normal Text> </Normal Text><Other Text>bassdrum</Other Text><Duration>8</Duration><Normal Text> </Normal Text><Keyword>}</Keyword><br/>
0066 <Normal Text>    </Normal Text><Keyword>\new</Keyword><Normal Text> </Normal Text><Context>FiguredBass</Context><Normal Text> </Normal Text><Other Mode>\figuremode </Other Mode><Keyword>{</Keyword><br/>
0067 <Normal Text>      </Normal Text><Chord><</Chord><Normal Text>5 4</Normal Text><Chord>></Chord><Duration>8</Duration><Normal Text> </Normal Text><Chord><</Chord><Normal Text>6-</Normal Text><Chord>></Chord><br/>
0068 <Normal Text>    </Normal Text><Keyword>}</Keyword><br/>
0069 <Normal Text>  </Normal Text><Keyword>>></Keyword><br/>
0070 <Normal Text>  </Normal Text><Keyword>\midi {</Keyword><br/>
0071 <Normal Text>    </Normal Text><Keyword>\context</Keyword><Normal Text> </Normal Text><Keyword>{</Keyword><br/>
0072 <Normal Text>      </Normal Text><User Command>\Score</User Command><br/>
0073 <Normal Text>      </Normal Text><Property>tempoWholesPerMinute</Property><Normal Text> = </Normal Text><Scheme>#</Scheme><Scheme Keyword>(</Scheme Keyword><Scheme>ly:make-moment </Scheme><Scheme Value>60</Scheme Value><Scheme> </Scheme><Scheme Value>2</Scheme Value><Scheme Keyword>)</Scheme Keyword><br/>
0074 <Normal Text>    </Normal Text><Keyword>}</Keyword><br/>
0075 <Normal Text>  </Normal Text><Keyword>}</Keyword><br/>
0076 <Keyword>}</Keyword><br/>
0077 <Normal Text></Normal Text><br/>
0078 <User Command>av</User Command><Normal Text> = </Normal Text><Scheme>#</Scheme><Scheme Keyword>(define-music-function</Scheme Keyword><Scheme> (parser location voice)</Scheme><br/>
0079 <Scheme>(</Scheme><Scheme Keyword>string?</Scheme Keyword><Scheme>)</Scheme><br/>
0080 <Scheme Comment>; scheme comments are recognized in scheme</Scheme Comment><br/>
0081 <Scheme Comment>; Lilypond inside scheme works as well:</Scheme Comment><br/>
0082 <Scheme Keyword>#{</Scheme Keyword><br/>
0083 <Normal Text>  </Normal Text><Keyword>\set</Keyword><Normal Text> </Normal Text><Property>associatedVoice</Property><Normal Text> = </Normal Text><Scheme Subst>$voice</Scheme Subst><br/>
0084 <Scheme Keyword>#})</Scheme Keyword><br/>
0085 <Normal Text></Normal Text><br/>
0086 <Normal Text></Normal Text><br/>
0087 <Normal Text></Normal Text><br/>
0088 <Normal Text>      </Normal Text><br/>
0089 <Comment>% inside scheme some elements are highlighted:    </Comment><br/>
0090 <Scheme>#</Scheme><Scheme Keyword>(define</Scheme Keyword><Scheme>  (naturalise-pitch p)</Scheme><br/>
0091 <Scheme>  (</Scheme><Scheme Keyword>let*</Scheme Keyword><Scheme> ((o (ly:pitch-octave p))</Scheme><br/>
0092 <Scheme>         (a (* </Scheme><Scheme Value>4</Scheme Value><Scheme> (ly:pitch-alteration p))) </Scheme><br/>
0093 <Scheme>         (n (ly:pitch-notename p)))</Scheme><br/>
0094 <Scheme>         (bla '</Scheme><Scheme Keyword>ArticulationEvent</Scheme Keyword><Scheme> '</Scheme><Scheme Keyword>ChoirStaff</Scheme Keyword><Scheme>)</Scheme><br/>
0095 <Scheme>    (</Scheme><Scheme Keyword>cond</Scheme Keyword><br/>
0096 <Scheme>     ((> a </Scheme><Scheme Value>2</Scheme Value><Scheme>) (</Scheme><Scheme Keyword>set!</Scheme Keyword><Scheme> a (- a </Scheme><Scheme Value>4</Scheme Value><Scheme>)) (</Scheme><Scheme Keyword>set!</Scheme Keyword><Scheme> n (+ n </Scheme><Scheme Value>1</Scheme Value><Scheme>)))</Scheme><br/>
0097 <Scheme>     ((< a </Scheme><Scheme Value>-2</Scheme Value><Scheme>) (</Scheme><Scheme Keyword>set!</Scheme Keyword><Scheme> a (+ a </Scheme><Scheme Value>4</Scheme Value><Scheme>)) (</Scheme><Scheme Keyword>set!</Scheme Keyword><Scheme> n (- n </Scheme><Scheme Value>1</Scheme Value><Scheme>))))</Scheme><br/>
0098 <Scheme></Scheme><br/>
0099 <Scheme>    (</Scheme><Scheme Keyword>if</Scheme Keyword><Scheme> (< n </Scheme><Scheme Value>0</Scheme Value><Scheme>) (</Scheme><Scheme Keyword>begin</Scheme Keyword><Scheme> (</Scheme><Scheme Keyword>set!</Scheme Keyword><Scheme>  o (- o </Scheme><Scheme Value>1</Scheme Value><Scheme>)) (</Scheme><Scheme Keyword>set!</Scheme Keyword><Scheme> n (+ n </Scheme><Scheme Value>7</Scheme Value><Scheme>))))</Scheme><br/>
0100 <Scheme>    (</Scheme><Scheme Keyword>if</Scheme Keyword><Scheme> (> n </Scheme><Scheme Value>6</Scheme Value><Scheme>) (</Scheme><Scheme Keyword>begin</Scheme Keyword><Scheme> (</Scheme><Scheme Keyword>set!</Scheme Keyword><Scheme>  o (+ o </Scheme><Scheme Value>1</Scheme Value><Scheme>)) (</Scheme><Scheme Keyword>set!</Scheme Keyword><Scheme> n (- n </Scheme><Scheme Value>7</Scheme Value><Scheme>))))</Scheme><br/>
0101 <Scheme></Scheme><br/>
0102 <Scheme>    (ly:make-pitch o n (/ a </Scheme><Scheme Value>4</Scheme Value><Scheme>)))</Scheme><Scheme Keyword>)</Scheme Keyword><br/>
0103 <Normal Text></Normal Text><br/>
0104 <Comment>% markup is also highlighted</Comment><br/>
0105 <Markup>\markup</Markup><Normal Text> </Normal Text><Keyword>{</Keyword><br/>
0106 <Normal Text>  </Normal Text><Markup>\line</Markup><Normal Text> </Normal Text><Keyword>{</Keyword><br/>
0107 <Normal Text>    text test Voice Staff </Normal Text><Comment>% note Lilypond keywords are not highlighted here</Comment><br/>
0108 <Normal Text>  </Normal Text><Keyword>}</Keyword><br/>
0109 <Normal Text>  </Normal Text><Markup>\score</Markup><Other Mode> </Other Mode><Keyword>{</Keyword><Normal Text> </Normal Text><Command>\relative c'</Command><Normal Text> </Normal Text><Keyword>{</Keyword><Normal Text> </Normal Text><Chord><</Chord><Normal Text>ceg</Normal Text><Chord>></Chord><Duration>2</Duration><Slur>(</Slur><Normal Text> </Normal Text><Pitch>d</Pitch><Slur>)</Slur><Normal Text> </Normal Text><Keyword>}</Keyword><Normal Text> </Normal Text><Keyword>}</Keyword><br/>
0110 <Normal Text>  </Normal Text><Markup>\italic</Markup><Normal Text> bla</Normal Text><br/>
0111 <Normal Text>  </Normal Text><Markup>\override</Markup><Normal Text> </Normal Text><Scheme>#'</Scheme><Scheme Keyword>(</Scheme Keyword><Scheme>baseline-skip . </Scheme><Scheme Value>2</Scheme Value><Scheme Keyword>)</Scheme Keyword><Normal Text> </Normal Text><Keyword>{</Keyword><br/>
0112 <Normal Text>    </Normal Text><Markup>\underline</Markup><Normal Text> blu</Normal Text><br/>
0113 <Normal Text>  </Normal Text><Keyword>}</Keyword><br/>
0114 <Keyword>}</Keyword><br/>