|
Flow control: if … then Flow control: try … thenThe vipsi distribution comes with a Appendix: Syntax Highlightingsyntax highlighting Syntax Highlighting: Definition filesdefinition file for kate Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and other Data Types: Text Item selector "[]": Text Glossary: text, text_valtext editors based on katepart. It is installed in /usr/share/apps/katepart/syntax/. Flow control: if … then Flow control: try … thenThe highlighting is near perfect.
Download link.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="VIP" section="Example Scripts: CGI Scripts Example Scripts: ScriptsScripts" version="0.10" kateversion="2.1"
extensions="*.vs;*.vh;*.vl"
mimetype="Data Types: Text Item selector "[]": Text Glossary: text, text_valtext/x-vip;Data Types: Text Item selector "[]": Text Glossary: text, text_valtext/x-VIP">
<!-- List functions: thisThis Text functions: file Instructions: filefile is free software -->
<!-- Maintained by kio@little-bat.de -->
<!-- (c) copyright 2004 Kio (Günter Woigk) -->
<!-- authoritative location: $VIPSI/libs/vip.xml -->
<highlighting>
<Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Constants Glossary: Constantconstants">
<item> Constants: ecec </item>
<item> Constants: pipi </item>
<item> Constants: nlnl </item>
<item> Constants: tabtab </item>
<item> Constants: stdinstdin </item>
<item> Constants: stdoutstdout </item>
<item> Constants: stderrstderr </item>
</Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist>
<Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Vipsi command syntax: Functions Functions Glossary: Functionfunctions">
<item> Text functions: file Instructions: filefile </item>
<item> List functions: dir Instructions: dir Shell Immediate Commands: dirdir </item>
<item> Text functions: link Instructions: linklink </item>
<item> Numeric functions: mdatemdate </item>
<item> Numeric functions: countcount </item>
<item> Numeric functions: indexindex </item>
<item> Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername </item>
<item> Numeric functions: randomrandom </item>
<item> Numeric functions: absabs </item>
<item> Numeric functions: signsign </item>
<item> Numeric functions: intint </item>
<item> Numeric functions: fractfract </item>
<item> Numeric functions: roundround </item>
<item> Numeric functions: minmin </item>
<item> Numeric functions: maxmax </item>
<item> Numeric functions: coscos </item>
<item> Numeric functions: sinsin </item>
<item> Numeric functions: tantan </item>
<item> Numeric functions: acosacos </item>
<item> Numeric functions: asinasin </item>
<item> Numeric functions: atanatan </item>
<item> Numeric functions: coshcosh </item>
<item> Numeric functions: sinhsinh </item>
<item> Numeric functions: tanhtanh </item>
<item> logn </item>
<item> Numeric functions: log2log2 </item>
<item> Numeric functions: log Numeric functions: loge Instructions: logloge </item>
<item> Numeric functions: log10log10 </item>
<item> Numeric functions: exp Numeric functions: expeexp </item>
<item> Numeric functions: exp2exp2 </item>
<item> Numeric functions: exp Numeric functions: expeexpe </item>
<item> Numeric functions: exp10exp10 </item>
<item> Numeric functions: squaresquare </item>
<item> Numeric functions: sqrtsqrt </item>
<item> Numeric functions: istextistext </item>
<item> Numeric functions: isnumberisnumber </item>
<item> Numeric functions: islistislist </item>
<item> Numeric functions: isprocisproc </item>
<item> Numeric functions: isfileisfile </item>
<item> Numeric functions: isdirisdir </item>
<item> Numeric functions: islinkislink </item>
<item> Numeric functions: existsexists </item>
<item> Data Types: Text Text functions: stringstring </item>
<item> Text functions: upperstrupperstr </item>
<item> Text functions: lowerstrlowerstr </item>
<item> Text functions: charstrcharstr </item>
<item> Numeric functions: charcodecharcode </item>
<item> Text functions: hexstrhexstr </item>
<item> Text functions: binstrbinstr </item>
<item> Text functions: substrsubstr </item>
<item> Text functions: midstrmidstr </item>
<item> Text functions: leftstrleftstr </item>
<item> Text functions: rightstrrightstr </item>
<item> Text functions: datestrdatestr </item>
<item> Numeric functions: nownow </item>
<item> Numeric functions: datevaldateval </item>
<item> Numeric functions: findfind </item>
<item> Numeric functions: rfindrfind </item>
<item> List functions: env Shell Immediate Commands: env Shell Immediate Commands: envenv </item>
<item> Numeric functions: matchmatch </item>
<item> Text functions: fullpathfullpath </item>
</Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist>
<Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Vipsi command syntax: Instructions Instructions Glossary: Instructioninstructions">
<item> Instructions: newnew </item>
<item> Instructions: deldel </item>
<item> Instructions: swapswap </item>
<item> Instructions: var How does VScript::Value() work?: Var*&var </item>
<item> Instructions: procproc </item>
<item> Instructions: freezefreeze </item>
<item> Instructions: meltmelt </item>
<item> Instructions: putput </item>
<item> Numeric functions: log Numeric functions: loge Instructions: loglog </item>
<item> Instructions: getget </item>
<item> Instructions: editedit </item>
<item> Instructions: getchargetchar </item>
<item> Instructions: writewrite </item>
<item> Instructions: readread </item>
<item> Functions with varying return types: ioctl Instructions: ioctlioctl </item>
<item> Functions with varying return types: eval Instructions: evaleval </item>
<item> Functions with varying return types: call Instructions: callcall </item>
<item> Text functions: sys Instructions: syssys </item>
<item> Functions with varying return types: include Instructions: includeinclude </item>
<item> Instructions: waitwait </item>
<item> Text functions: info Shell Immediate Commands: infoinfo </item>
<item> Instructions: sortsort </item>
<item> Instructions: rsortrsort </item>
<item> List functions: split Instructions: splitsplit </item>
<item> Text functions: convert Instructions: convertconvert </item>
<item> Text functions: replace Instructions: replacereplace </item>
<item> Instructions: openopen </item>
<item> Instructions: openinopenin </item>
<item> Instructions: openoutopenout </item>
<item> Instructions: closeclose </item>
<item> Instructions: renamerename </item>
<item> Instructions: cd Shell Immediate Commands: cdcd </item>
<item> List functions: words Shell Immediate Commands: wordswords </item>
<item> List functions: globals Shell Immediate Commands: globalsglobals </item>
<item> List functions: localslocals </item>
<item> root </item>
<item> ; </item>
</Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist>
<Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="flowcontrol">
<item> Flow control: returnreturn </item>
<item> Flow control: end Shell Immediate Commands: exit, quit, endend </item>
<item> Flow control: do … loopdo </item>
<item> Flow control: whilewhile </item>
<item> Flow control: untiluntil </item>
<item> Flow control: exit Shell Immediate Commands: exit, quit, endexit </item>
<item> Flow control: nextnext </item>
<item> Flow control: do … looploop </item>
<item> Flow control: if … thenif </item>
<item> Flow control: try … thentry </item>
<item> Flow control: if … then Flow control: try … thenelse </item>
<item> Flow control: if … thenelif </item>
<item> Flow control: if … then Flow control: try … thenthen </item>
</Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist>
<Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Flow control: do … loopdo">
<item> Flow control: do … loopdo </item>
</Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist>
<Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Flow control: do … looploop">
<item> Flow control: do … looploop </item>
</Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist>
<Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Flow control: if … thenif">
<item> Flow control: if … thenif </item>
<item> Flow control: try … thentry </item>
</Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist>
<Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Flow control: if … then Flow control: try … thenthen">
<item> Flow control: if … then Flow control: try … thenthen </item>
</Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist>
<Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Flow control: if … then Flow control: try … thenelse">
<item> Flow control: if … then Flow control: try … thenelse </item>
</Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist>
<Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Separatorsseparators">
<item> from </item>
<item> to </item>
</Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist>
<contexts>
<!--
<context Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="hash_bang" lineEndContext="normal_text" attribute="HashBang">
<RegExpr attribute="HashBang" context="normal_text" Data Types: Text Text functions: stringString="#!/.*$" />
<RegExpr attribute="ALERT" context="normal_text" Data Types: Text Text functions: stringString=".{0}" />
<RegExpr attribute="ALERT" context="normal_text" Data Types: Text Text functions: stringString="^$" />
<RegExpr attribute="ALERT" context="normal_text" Data Types: Text Text functions: stringString="^" />
<RegExpr attribute="ALERT" context="normal_text" Data Types: Text Text functions: stringString="^?" />
<RegExpr attribute="ALERT" context="normal_text" Data Types: Text Text functions: stringString="^*" />
<RegExpr attribute="ALERT" context="normal_text" Data Types: Text Text functions: stringString="\n" />
<RegExpr attribute="ALERT" context="normal_text" Data Types: Text Text functions: stringString="\n?" />
<RegExpr attribute="ALERT" context="normal_text" Data Types: Text Text functions: stringString="\n*" />
<RegExpr attribute="ALERT" context="normal_text" Data Types: Text Text functions: stringString=".?" />
<LineContinue attribute="ALERT" context="normal_text" />
</context>
-->
<context Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="normal_text" lineEndContext="#stay" attribute="Normal Data Types: Text Item selector "[]": Text Glossary: text, text_valText">
<keyword Data Types: Text Text functions: stringString="Constants Glossary: Constantconstants" context="#stay" attribute="Constants Glossary: ConstantConstants" />
<keyword Data Types: Text Text functions: stringString="Vipsi command syntax: Functions Functions Glossary: Functionfunctions" context="#stay" attribute="Vipsi command syntax: Functions Functions Glossary: FunctionFunctions" />
<keyword Data Types: Text Text functions: stringString="Vipsi command syntax: Instructions Instructions Glossary: Instructioninstructions" context="#stay" attribute="Vipsi command syntax: Instructions Instructions Glossary: InstructionInstructions" />
<keyword Data Types: Text Text functions: stringString="Flow control: do … loopdo" context="#stay" attribute="Vipsi command syntax: Flow control Flow controlFlow Control" beginRegion="DoLoop" />
<keyword Data Types: Text Text functions: stringString="Flow control: do … looploop" context="#stay" attribute="Vipsi command syntax: Flow control Flow controlFlow Control" endRegion="DoLoop" />
<keyword Data Types: Text Text functions: stringString="Flow control: if … thenif" context="#stay" attribute="Vipsi command syntax: Flow control Flow controlFlow Control" beginRegion="IfThen" />
<keyword Data Types: Text Text functions: stringString="Flow control: if … then Flow control: try … thenthen" context="#stay" attribute="Vipsi command syntax: Flow control Flow controlFlow Control" endRegion="IfThen" />
<keyword Data Types: Text Text functions: stringString="flowcontrol" context="#stay" attribute="Vipsi command syntax: Flow control Flow controlFlow Control" />
<Detect2Chars char="/" char1="/" attribute="Vipsi command syntax: CommentsComment" context="line_comment" />
<Detect2Chars char="/" char1="*" attribute="Vipsi command syntax: CommentsComment" context="block_comment"
beginRegion="BlockComment" />
<DetectChar attribute="SeparatorsSeparators" context="#stay" char="{" beginRegion="Separators: Curly brackets "{ … }" Instructions: Local scope "{}"Braces" />
<DetectChar attribute="SeparatorsSeparators" context="#stay" char="}" endRegion="Separators: Curly brackets "{ … }" Instructions: Local scope "{}"Braces" />
<AnyChar attribute="SeparatorsSeparators" context="#stay" Data Types: Text Text functions: stringString=",()[]" />
<RegExpr attribute="HashBang" context="#stay" Data Types: Text Text functions: stringString="^#!/.*$" />
<AnyChar attribute="Vipsi command syntax: Operators Operators Glossary: OperatorOperators" context="#stay" Data Types: Text Text functions: stringString="+-!~@=-*/%#|^.<>&" />
<DetectChar attribute="Data Types: Text Text functions: stringString" context="string_literal" char=""" beginRegion="Data Types: Text Text functions: stringString" />
<DetectChar attribute="Data Types: Text Text functions: stringString" context="string_literal2" char="«" beginRegion="Data Types: Text Text functions: stringString" />
<Numeric functions: intInt attribute="Glossary: number, num_valNumber" context="#stay" />
<Float attribute="Glossary: number, num_valNumber" context="#stay" />
<RegExpr attribute="Glossary: number, num_valNumber" context="#stay" Data Types: Text Text functions: stringString="\$[0-9A-Fa-f]{1,16}" />
<DetectChar attribute="Glossary: number, num_valNumber" context="ascii_digits" char="'" />
</context>
<context attribute="Glossary: number, num_valNumber" lineEndContext="#pop" Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="ascii_digits">
<Detect2Chars attribute="Glossary: number, num_valNumber" context="#stay" char="\" char1="\" />
<Detect2Chars attribute="Glossary: number, num_valNumber" context="#stay" char="\" char1="'" />
<DetectChar attribute="Glossary: number, num_valNumber" context="#pop" char="'"/>
</context>
<context attribute="Glossary: number, num_valNumber" lineEndContext="#pop" Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="dec_digits">
<RegExpr attribute="Glossary: number, num_valNumber" context="#stay" Data Types: Text Text functions: stringString="[0-9](?=[0-9])"/>
<RegExpr attribute="Glossary: number, num_valNumber" context="#pop" Data Types: Text Text functions: stringString="[0-9](?![0-9])"/>
</context>
<context attribute="Glossary: number, num_valNumber" lineEndContext="#pop" Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="bin_digits">
<RegExpr attribute="Glossary: number, num_valNumber" context="#stay" Data Types: Text Text functions: stringString="[01](?=[01])"/>
<RegExpr attribute="Glossary: number, num_valNumber" context="#pop" Data Types: Text Text functions: stringString="[01](?![01])"/>
</context>
<context attribute="Data Types: Text Text functions: stringString" lineEndContext="#stay" Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="string_literal">
<LineContinue attribute="Data Types: Text Text functions: stringString" context="#stay"/>
<Detect2Chars attribute="Data Types: Text Text functions: stringString" context="#stay" char="\" char1="\" />
<Detect2Chars attribute="Data Types: Text Text functions: stringString" context="#stay" char="\" char1=""" />
<DetectChar attribute="Data Types: Text Text functions: stringString" context="#pop" char=""" endRegion="Data Types: Text Text functions: stringString" />
</context>
<context attribute="Data Types: Text Text functions: stringString" lineEndContext="#stay" Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="string_literal2">
<LineContinue attribute="Data Types: Text Text functions: stringString" context="#stay"/>
<Detect2Chars attribute="Data Types: Text Text functions: stringString" context="#stay" char="\" char1="\" />
<Detect2Chars attribute="Data Types: Text Text functions: stringString" context="#stay" char="\" char1="»" />
<Detect2Chars attribute="Data Types: Text Text functions: stringString" context="#stay" char="\" char1="«" />
<DetectChar attribute="ALERT" context="#stay" char="«" />
<DetectChar attribute="Data Types: Text Text functions: stringString" context="#pop" char="»" endRegion="Data Types: Text Text functions: stringString" />
</context>
<context attribute="Vipsi command syntax: CommentsComment" lineEndContext="#stay" Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="block_comment">
<Detect2Chars attribute="ALERT" context="#stay" char="/" char1="*" />
<RegExpr attribute="ALERT" context="#stay" Data Types: Text Text functions: stringString="(###|Operators: Bitwise Not "~" Operators: Boolean Negation "!"NOTE|NOTICE|FIXME|TODO|NIMP)" />
<Detect2Chars attribute="Vipsi command syntax: CommentsComment" context="#pop" char="*" char1="/" endRegion="BlockComment" />
</context>
<context attribute="Vipsi command syntax: CommentsComment" lineEndContext="#pop" Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="line_comment">
<RegExpr attribute="ALERT" context="#stay" Data Types: Text Text functions: stringString="(###|Operators: Bitwise Not "~" Operators: Boolean Negation "!"NOTE|NOTICE|FIXME|TODO|NIMP)" />
</context>
</contexts>
<itemDatas>
<itemData Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="HashBang" defStyleNum="dsOthers"/>
<itemData Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Normal Data Types: Text Item selector "[]": Text Glossary: text, text_valText" defStyleNum="dsNormal"/>
<itemData Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="SeparatorsSeparators" defStyleNum="dsOthers"/>
<itemData Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Vipsi command syntax: Operators Operators Glossary: OperatorOperators" defStyleNum="dsOthers"/>
<itemData Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Vipsi command syntax: Functions Functions Glossary: FunctionFunctions" defStyleNum="dsKeyword"/>
<itemData Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Vipsi command syntax: Instructions Instructions Glossary: InstructionInstructions" defStyleNum="dsKeyword"/>
<itemData Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Vipsi command syntax: Flow control Flow controlFlow Control" defStyleNum="dsKeyword"/>
<itemData Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Glossary: number, num_valNumber" defStyleNum="dsDecVal"/>
<itemData Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Constants Glossary: ConstantConstants" defStyleNum="dsDecVal"/>
<itemData Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Data Types: Text Text functions: stringString" defStyleNum="dsString"/>
<itemData Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="Vipsi command syntax: CommentsComment" defStyleNum="dsComment"/>
<itemData Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="ALERT" defStyleNum="dsKeyword" color="#000000" bold="1"/>
</itemDatas>
</highlighting>
<About this Guide: General Built-in operators: Generalgeneral>
<Vipsi command syntax: Commentscomments>
<Vipsi command syntax: Commentscomment Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="multiLine" start="/*" Flow control: end Shell Immediate Commands: exit, quit, endend="*/" />
<Vipsi command syntax: Commentscomment Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername="singleLine" start="//" />
</Vipsi command syntax: Commentscomments>
<keywords casesensitive="1" additionalDeliminator="#«»'"" />
</About this Guide: General Built-in operators: Generalgeneral>
</language>
| |