Warning, /frameworks/syntax-highlighting/data/syntax/abc.xml is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <!DOCTYPE language>
0003 <!-- Andrea Primiani - primiani at dag dot it
0004         version1.10 - 12 december 2005 -->
0005 <language name="ABC" version="8" kateversion="5.0" section="Other" extensions="*.abc;*.ABC" mimetype="text/vnd.abc" casesensitive="1" author="Andrea Primiani (primiani@dag.it)" license="LGPL">
0006     <highlighting>
0007         <contexts>
0008            <context name="Normal" attribute="Normal Text" lineEndContext="#stay">
0009 <!-- detects tuplet symbols e.g. (3 or (3:2:2-->
0010             <RegExpr attribute="Tuplet" context="#stay" String="\([23456789]:?[23456789]?:?[23456789]?" />
0011 <!-- detects quoted strings -->
0012             <RangeDetect attribute="String" context="#stay" char="&quot;" char1="&quot;"/>
0013 <!-- detects decorations delimited by ! ! symbols -->
0014             <RangeDetect attribute="Decoration" context="#stay" char="!" char1="!" />
0015 <!-- detects single header command delimited by [ and sends to Header context -->
0016             <RegExpr attribute="Header" context="Header" String="\[[ABCGHILMNOQRSTUVZ]:" />
0017 <!-- detects single header line inside a song without [] - ends at EOL-->
0018             <RegExpr attribute="Header" context="Header2" String="[ABCGHILMNOPQRSTUVZ]:" />
0019 <!-- detect beginning of header zone with X: and sends to Header context -->        
0020             <Detect2Chars attribute="Header" context="Header" char="X" char1=":" beginRegion="header" column="0"/>
0021 <!-- detects bar beginning (or chord) symbols and sends to Bar context -->
0022             <AnyChar attribute="Bar" context="Bar" String="|:[" />
0023 <!-- detects ] if used to close chords -->          
0024             <DetectChar attribute="Bar" context="#stay" char="]" />
0025 <!-- detects () for slurs -->
0026 <!-- detects {} for gracings -->
0027             <AnyChar attribute="Slur" context="#stay" String="(){}" />
0028 <!-- detects W: and w: lyric lines -->      
0029             <Detect2Chars attribute="Lyrics" context="Lyrics" char="W" char1=":" />
0030             <Detect2Chars attribute="Lyrics" context="Lyrics" char="w" char1=":" />
0031 <!-- detects %% preprocessor lines and % comment lines-->           
0032             <Detect2Chars attribute="Preprocessor" context="Preprocessor" char="%" char1="%"/>
0033             <DetectChar attribute="Comment" context="Comment" char="%" />
0034 <!-- detects ^ _ = symbols before a note -->
0035             <RegExpr attribute="Sharp" context="#stay" String="[_|\^]?[_|=|\^][A-Ga-g]" />
0036            </context>
0037 <!-- returns to Normal context at the end of line -->      
0038            <context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop" />
0039            <context name="Lyrics" attribute="Lyrics" lineEndContext="#pop" />
0040            <context name="Comment" attribute="Comment" lineEndContext="#pop">
0041             <IncludeRules context="##Comments" />
0042            </context>
0043 <!-- returns to Normal context after the end of bar symbols or at EOL -->
0044            <context name="Bar" attribute="Bar" lineEndContext="#pop" >
0045                 <DetectChar attribute="Normal Text" context="#pop" char="&quot;" />
0046 <!-- the bar symbol ends when a note letter follows -->
0047                 <RegExpr attribute="Normal Text" context="#pop" String="[A-Ga-gZz]" />
0048 <!-- the bar symbol ends after a white space -->
0049                 <DetectChar attribute="Normal Text" context="#pop" char=" " />
0050 <!-- detects decorations delimited by ! ! symbols -->
0051             <RangeDetect attribute="Decoration" context="#stay" char="!" char1="!" />
0052 <!-- detects () for slurs -->
0053             <AnyChar attribute="Slur" context="#stay" String="()" />
0054 <!-- chomps all other bar symbols -->
0055                 <RegExpr attribute="Bar" context="#pop" String=":*\|*[1-9]|/*\|" />
0056            </context>
0057 <!-- returns to Normal context at the end of header -->
0058            <context name="Header" attribute="Header" lineEndContext="#stay">
0059 <!-- the header ends after K: line -->
0060                 <RegExpr attribute="Header" context="#pop" String="^K:.+" endRegion="header" column="0"/>
0061 <!-- the single header command ends at the ] char -->
0062                 <DetectChar attribute="Header" context="#pop" char="]" />
0063            </context>
0064 <!-- the single header line ends at EOL -->
0065            <context name="Header2" attribute="Header" lineEndContext="#pop" />
0066        </contexts>
0067         <itemDatas>
0068           <itemData name="Normal Text" defStyleNum="dsNormal"/>
0069           <itemData name="Comment" defStyleNum="dsComment"/>
0070           <itemData name="Decoration" defStyleNum="dsFloat" color="#00bbaa" />
0071           <itemData name="String" defStyleNum="dsString" bold="true"/>
0072           <itemData name="Preprocessor" defStyleNum="dsString" italic="true"/>
0073           <itemData name="Header" defStyleNum="dsFloat"/>
0074           <itemData name="Slur" defStyleNum="dsDataType" bold="true"/>
0075           <itemData name="Tuplet" defStyleNum="dsDataType" color="#bb00bb"/>
0076           <itemData name="Lyrics" defStyleNum="dsDataType" color="#00bb00"/>
0077           <itemData name="Bar" defStyleNum="dsChar" color="#0000ff"/>
0078           <itemData name="Sharp" defStyleNum="dsNormal" color="#22bb66" bold="true"/>
0079         </itemDatas>
0080  </highlighting>
0081   <general>
0082     <comments>
0083       <comment name="singleLine" start="%" position="afterwhitespace" />
0084     </comments>
0085     <keywords casesensitive="1" />
0086   </general>
0087 </language>
0088 <!-- kate: replace-tabs off; -->