COBOL support in function list - new entries in functionList.xml (note: defaults to fixed-form reference format, manual switch to free-form reference-format possible in association for langID 50)
COBOL support in auto-completion - new file APIs/cobol.xml COBOL syntax highlighter - recreated list note: list of statements, functions and reserved words token from GnuCOBOL 3.0 (COBOL85,2002,2014 + extensions from IBM/MF/RM/ACUCOBOL), please report back if any words are missing
This commit is contained in:
parent
b2c3e82ce7
commit
adae1922cf
File diff suppressed because it is too large
Load Diff
|
@ -90,6 +90,11 @@
|
|||
<association id= "powershell_function" langID="53" />
|
||||
<association id= "javascript_function" langID="58" />
|
||||
<association id= "baanc_section" langID="60" />
|
||||
<!--
|
||||
As there is currently only one langID for COBOL: change to cobol_section_free
|
||||
if this is your favourite format
|
||||
-->
|
||||
<association langID="50" id="cobol_section_fixed"/>
|
||||
<!-- ======================================================================== -->
|
||||
<association id= "krl_function" userDefinedLangName="KRL" />
|
||||
<association id= "krl_function" ext=".src" />
|
||||
|
@ -1468,6 +1473,28 @@
|
|||
</function>
|
||||
</parser>
|
||||
|
||||
<!-- Variant for COBOL fixed-form reference format -->
|
||||
<parser id="cobol_section_fixed" displayName="COBOL fixed-form reference format">
|
||||
<function
|
||||
mainExpr="(?m-s)^.{6}[ D][\t ]{0,3}(?!exit\s)[\w_-]+(\.|((?'seps'([\t ]|\*>.*|([\n\r]+(.{6}([ D]|\*.*)|.{0,6}$)))+)section(\.|((?&seps)(\.|[\w_-]+\.)))))"
|
||||
displayMode="$functionName">
|
||||
<functionName>
|
||||
<nameExpr expr="[\w_-]+((?=\.)|((?'seps'([\t ]|\*>.*|([\n\r]+(.{6}([ D]|\*.*)|.{0,6}$)))+)section((?=\.)|(?&seps)((?=\.)|[\w_-]+(?=\.)))))"/>
|
||||
</functionName>
|
||||
</function>
|
||||
</parser>
|
||||
|
||||
<!-- Variant for COBOL free-form reference format -->
|
||||
<parser id="cobol_section_free" displayName="COBOL free-form reference format">
|
||||
<function
|
||||
mainExpr="[\s\.](?!exit\s)[\w_-]+\s+section(\s*|(\s+[\w_-]+)?)(?=\.)"
|
||||
displayMode="$functionName">
|
||||
<functionName>
|
||||
<nameExpr expr="[\w_-]+\s*section"/>
|
||||
</functionName>
|
||||
</function>
|
||||
</parser>
|
||||
|
||||
<!-- ================================================================= -->
|
||||
</parsers>
|
||||
</functionList>
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue