Highlighting relied on the syntax-highlighting package, so removing it left every file uncoloured. The 462 definitions now live in assets/syntax and are compressed into the binary at build time, unpacked per language when used. User .xml files still add to or replace them, and the licence each file declares is recorded in assets/syntax/LICENSES.md. Also moves files to the trash without needing gio. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 line
No EOL
16 KiB
XML
1 line
No EOL
16 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Praat" version="6" kateversion="5.62" section="Scripts" extensions="*.Praat;*.praat;*.psc;*.praat-script;*.praatscript;*.proc" author="Jose Joaquín Atria ([email protected])" license="LGPLv2"><highlighting><list name="keywords"><item>assert</item><item>clearinfo</item><item>demo</item><item>elif</item><item>else</item><item>elsif</item><item>from</item><item>minus</item><item>nocheck</item><item>noprogress</item><item>nowarn</item><item>plus</item><item>select</item><item>stopwatch</item><item>then</item><item>to</item></list><list name="functions_string"><item>backslashTrigraphsToUnicode$</item><item>chooseDirectory$</item><item>chooseReadFile$</item><item>chooseWriteFile$</item><item>date$</item><item>demoKey$</item><item>do$</item><item>environment$</item><item>extractLine$</item><item>extractWord$</item><item>fixed$</item><item>info$</item><item>left$</item><item>mid$</item><item>percent$</item><item>readFile$</item><item>replace$</item><item>replace_regex$</item><item>right$</item><item>selected$</item><item>string$</item></list><list name="functions_numeric"><item>abs</item><item>appendFile</item><item>appendFileLine</item><item>appendInfo</item><item>appendInfoLine</item><item>arccos</item><item>arccosh</item><item>arcsin</item><item>arcsinh</item><item>arctan</item><item>arctan2</item><item>arctanh</item><item>barkToHertz</item><item>beginPause</item><item>beginSendPraat</item><item>besselI</item><item>besselK</item><item>beta</item><item>beta2</item><item>binomialP</item><item>binomialQ</item><item>boolean</item><item>ceiling</item><item>chiSquareP</item><item>chiSquareQ</item><item>choice</item><item>comment</item><item>cos</item><item>cosh</item><item>createDirectory</item><item>deleteFile</item><item>demoClicked</item><item>demoClickedIn</item><item>demoCommandKeyPressed</item><item>demoExtraControlKeyPressed</item><item>demoInput</item><item>demoKeyPressed</item><item>demoOptionKeyPressed</item><item>demoShiftKeyPressed</item><item>demoShow</item><item>demoWaitForInput</item><item>demoWindowTitle</item><item>demoX</item><item>demoY</item><item>differenceLimensToPhon</item><item>do</item><item>editor</item><item>endPause</item><item>endSendPraat</item><item>endsWith</item><item>erb</item><item>erbToHertz</item><item>erf</item><item>erfc</item><item>exitScript</item><item>exp</item><item>extractNumber</item><item>fileReadable</item><item>fisherP</item><item>fisherQ</item><item>floor</item><item>gaussP</item><item>gaussQ</item><item>hash</item><item>hertzToBark</item><item>hertzToErb</item><item>hertzToMel</item><item>hertzToSemitones</item><item>imax</item><item>imin</item><item>incompleteBeta</item><item>incompleteGammaP</item><item>index</item><item>index_regex</item><item>integer</item><item>invBinomialP</item><item>invBinomialQ</item><item>invChiSquareQ</item><item>invFisherQ</item><item>invGaussQ</item><item>invSigmoid</item><item>invStudentQ</item><item>length</item><item>ln</item><item>lnBeta</item><item>lnGamma</item><item>log10</item><item>log2</item><item>max</item><item>melToHertz</item><item>min</item><item>minusObject</item><item>natural</item><item>number</item><item>numberOfColumns</item><item>numberOfRows</item><item>numberOfSelected</item><item>objectsAreIdentical</item><item>option</item><item>optionMenu</item><item>pauseScript</item><item>phonToDifferenceLimens</item><item>plusObject</item><item>positive</item><item>randomBinomial</item><item>randomGauss</item><item>randomInteger</item><item>randomPoisson</item><item>randomUniform</item><item>readFile</item><item>real</item><item>removeObject</item><item>rindex</item><item>rindex_regex</item><item>round</item><item>runScript</item><item>runSystem</item><item>runSystem_nocheck</item><item>selectObject</item><item>selected</item><item>semitonesToHertz</item><item>sentence</item><item>sentencetext</item><item>sigmoid</item><item>sin</item><item>sinc</item><item>sincpi</item><item>sinh</item><item>soundPressureToPhon</item><item>sqrt</item><item>startsWith</item><item>studentP</item><item>studentQ</item><item>tan</item><item>tanh</item><item>text</item><item>variableExists</item><item>word</item><item>writeFile</item><item>writeFileLine</item><item>writeInfo</item><item>writeInfoLine</item></list><list name="functions_array"><item>linear#</item><item>randomGauss#</item><item>randomInteger#</item><item>randomUniform#</item><item>zero#</item></list><list name="variables_numeric"><item>all</item><item>average</item><item>e</item><item>left</item><item>macintosh</item><item>mono</item><item>pi</item><item>praatVersion</item><item>right</item><item>stereo</item><item>undefined</item><item>unix</item><item>windows</item></list><list name="variables_string"><item>defaultDirectory$</item><item>homeDirectory$</item><item>newline$</item><item>praatVersion$</item><item>preferencesDirectory$</item><item>shellDirectory$</item><item>tab$</item><item>temporaryDirectory$</item></list><contexts><context name="normal" attribute="normal" lineEndContext="#pop"><DetectChar char="#" attribute="comment" context="comment" firstNonSpace="1"/><IncludeRules context="function check"/><DetectChar char="@" attribute="function" context="procedure name" firstNonSpace="1"/><RegExpr String="call([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="function word to shorthand arguments" firstNonSpace="1"/><RegExpr String="include([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="unquoted string" firstNonSpace="1"/><RegExpr String="([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)?if([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" beginRegion="if"/><RegExpr String="endif([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" endRegion="if" firstNonSpace="1"/><RegExpr String="([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)?fi([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" endRegion="if"/><RegExpr String="for([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" beginRegion="for" firstNonSpace="1"/><RegExpr String="endfor([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" endRegion="for" firstNonSpace="1"/><RegExpr String="while([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" beginRegion="while" firstNonSpace="1"/><RegExpr String="endwhile([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" endRegion="while" firstNonSpace="1"/><RegExpr String="repeat([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" beginRegion="repeat" firstNonSpace="1"/><RegExpr String="until([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" endRegion="repeat" firstNonSpace="1"/><RegExpr String="procedure([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="procedure name" beginRegion="procedure" firstNonSpace="1"/><RegExpr String="endproc([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" endRegion="procedure" firstNonSpace="1"/><StringDetect String="select all" attribute="keyword" firstNonSpace="1"/><keyword String="keywords" attribute="keyword"/><RegExpr String="([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)(print(line|tab)?|echo|exit|asserterror|pause|send(praat|socket)|execute)([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="unquoted string"/><RegExpr String="([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)editor([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="unquoted string" beginRegion="editor"/><RegExpr String="([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)endeditor([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" endRegion="editor"/><RegExpr String="form([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="old form definition" beginRegion="form" firstNonSpace="1"/><RegExpr String="(goto|label)([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="label" firstNonSpace="1"/><DetectChar char='"' attribute="string" context="quoted string"/><IncludeRules context="expansion"/><IncludeRules context="operator"/><IncludeRules context="variable name"/><RegExpr String="\b[A-Z]" attribute="command" context="command"/><DetectChar char=";" attribute="comment" context="comment"/></context><context name="expansion" attribute="normal" lineEndContext="#pop"><RegExpr String="'[^\[\]'"]+(\[([\w\d,]+|"[\w\d,]+")\])?'" attribute="expansion"/></context><context name="unquoted string" attribute="string" lineEndContext="broken unquoted string"><IncludeRules context="expansion"/></context><context name="comment" attribute="comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="function call" attribute="function" lineEndContext="#pop"><RegExpr String="([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)beginSendPraat([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" beginRegion="sendpraat"/><RegExpr String="([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)endSendPraat([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" endRegion="sendpraat"/><RegExpr String="([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)beginPause([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" beginRegion="pause"/><RegExpr String="([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)endPause([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" endRegion="pause"/><DetectSpaces attribute="normal"/><AnyChar String=":(" attribute="normal" context="#pop#pop#pop"/></context><context name="number" attribute="normal" lineEndContext="#pop"><IncludeRules context="operator"/><RegExpr String="\b\d+(\.\d*)?([eE][-+]?\d+)?%?" attribute="number"/></context><context name="operator" attribute="operator" lineEndContext="#pop"><RegExpr String="([+\/*<>=!-]=?|[&*|][&*|]?|\^|<>)" attribute="operator"/><RegExpr String="\.(and|or|not|div|mod)|(and|or|not|div|mod)\." attribute="normal"/><WordDetect String="and" attribute="operator"/><WordDetect String="or" attribute="operator"/><WordDetect String="not" attribute="operator"/><WordDetect String="div" attribute="operator"/><WordDetect String="mod" attribute="operator"/></context><context name="broken unquoted string" attribute="string"><DetectSpaces attribute="normal"/><StringDetect String="..." attribute="normal" context="#pop" firstNonSpace="1"/><IncludeRules context="expansion"/><RegExpr String="[\w\d#@;.]" context="#pop#pop" firstNonSpace="1" lookAhead="1"/></context><context name="procedure name" attribute="function" lineEndContext="#pop"><AnyChar String=":(" attribute="normal" context="#pop"/><IncludeRules context="expansion"/><DetectSpaces attribute="normal" context="#pop"/></context><context name="quoted string" attribute="string" lineEndContext="broken quoted string"><IncludeRules context="expansion"/><DetectChar char='"' attribute="string" context="#pop"/></context><context name="shorthand arguments" attribute="normal" lineEndContext="#pop#pop"><IncludeRules context="variable name"/><DetectChar char='"' attribute="string" context="quoted string"/></context><context name="variable name" attribute="normal" lineEndContext="#pop"><IncludeRules context="operator"/><IncludeRules context="number"/><keyword String="variables_numeric" attribute="variable"/><keyword String="variables_string" attribute="variable"/><RegExpr String="\b[A-Z][a-zA-Z]+_" attribute="object.attribute" context="object reference"/></context><context name="array function check" attribute="normal" lineEndContext="#pop"><RegExpr String="[a-zA-Z0-9_]+# *[:(]" attribute="normal" context="function call" lookAhead="1"/><DetectChar char=" " context="#pop#pop"/></context><context name="broken quoted string" attribute="string"><IncludeRules context="broken unquoted string"/><DetectChar char='"' attribute="string" context="#pop#pop"/></context><context name="command" attribute="command" lineEndContext="#pop"><IncludeRules context="expansion"/><StringDetect String="..." attribute="command" context="shorthand arguments"/><DetectChar char=":" attribute="command" context="#pop"/></context><context name="function check" attribute="normal" lineEndContext="#pop"><keyword String="functions_numeric" attribute="normal" context="numeric function check" lookAhead="1"/><keyword String="functions_string" attribute="normal" context="string function check" lookAhead="1"/><keyword String="functions_array" attribute="normal" context="array function check" lookAhead="1"/></context><context name="function word to shorthand arguments" attribute="function" lineEndContext="#pop"><AnyChar String=":(" attribute="normal" context="#pop"/><IncludeRules context="expansion"/><DetectSpaces attribute="normal" context="#pop!shorthand arguments"/></context><context name="ignore" attribute="normal" lineEndContext="#pop"/><context name="label" attribute="variable" lineEndContext="#pop"/><context name="normal word to string" attribute="normal" lineEndContext="#pop"><RegExpr String="\b\w+\b" attribute="normal" context="unquoted string"/></context><context name="normal word to string word" attribute="normal" lineEndContext="#pop"><RegExpr String="\b\w+\b" attribute="normal" context="string word"/></context><context name="normal word to variable" attribute="normal" lineEndContext="#pop"><RegExpr String="\b\w+\b" attribute="normal" context="variable"/></context><context name="normal word with colon to number" attribute="normal" lineEndContext="#pop"><DetectChar char=":" attribute="normal" context="number"/></context><context name="numeric function check" attribute="normal" lineEndContext="#pop"><RegExpr String="[a-zA-Z0-9_]+ *[:(]" attribute="normal" context="function call" lookAhead="1"/><RegExpr String="([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)editor([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="#pop#pop!unquoted string" beginRegion="editor"/><DetectChar char=" " context="#pop#pop"/></context><context name="object attributes" attribute="normal" lineEndContext="#pop"><RegExpr String="\.(ncol|nrow|xmin|ymin|xmax|ymax|nx|ny|dx|dy)([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="object.attribute" context="#pop"/></context><context name="object reference" attribute="object.attribute" lineEndContext="#pop#pop"><DetectChar char="." attribute="object.attribute" context="#pop#pop!object attributes" lookAhead="1"/><IncludeRules context="expansion"/><DetectChar char="$" attribute="object.attribute"/><DetectChar char="[" attribute="normal" context="#pop#pop"/></context><context name="old form" attribute="normal"><DetectChar char="#" attribute="comment" context="comment" firstNonSpace="1"/><RegExpr String="(choice|optionmenu)([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="normal word with colon to number" firstNonSpace="1"/><RegExpr String="(option|button)([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="unquoted string" firstNonSpace="1"/><RegExpr String="(sentence|text)([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="normal word to string" firstNonSpace="1"/><RegExpr String="word([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="normal word to string word" firstNonSpace="1"/><RegExpr String="comment([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="unquoted string" firstNonSpace="1"/><RegExpr String="(real|natural|positive|integer)([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="number" firstNonSpace="1"/><RegExpr String="boolean([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="normal word to variable" firstNonSpace="1"/><RegExpr String="endform([^a-zA-Z0-9\._"'\$#\[:\(]|\s|^|$)" attribute="keyword" context="#pop" endRegion="form" firstNonSpace="1"/></context><context name="old form definition" attribute="string" lineEndContext="#pop!old form"/><context name="string function check" attribute="normal" lineEndContext="#pop"><RegExpr String="[a-zA-Z0-9_]+\$ *[:(]" attribute="normal" context="function call" lookAhead="1"/><DetectChar char=" " context="#pop#pop"/></context><context name="string word" attribute="string" lineEndContext="#pop"><RegExpr String="\b\w+\b" attribute="string" context="ignore"/></context><context name="variable" attribute="variable" lineEndContext="#pop"/></contexts><itemDatas><itemData name="normal" defStyleNum="dsNormal"/><itemData name="number" defStyleNum="dsDecVal"/><itemData name="object.attribute" defStyleNum="dsDecVal"/><itemData name="variable" defStyleNum="dsDataType"/><itemData name="keyword" defStyleNum="dsKeyword"/><itemData name="expansion" defStyleNum="dsSpecialString"/><itemData name="string" defStyleNum="dsString"/><itemData name="command" defStyleNum="dsFunction"/><itemData name="function" defStyleNum="dsFunction"/><itemData name="operator" defStyleNum="dsOperator"/><itemData name="comment" defStyleNum="dsComment"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="#" position="afterwhitespace"/></comments><keywords casesensitive="1" weakDeliminator="._#$"/></general></language> |