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:
Simon Sobisch 2017-12-14 09:20:46 +01:00
parent b2c3e82ce7
commit adae1922cf
3 changed files with 1280 additions and 4 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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 ]|\*&gt;.*|([\n\r]+(.{6}([ D]|\*.*)|.{0,6}$)))+)section(\.|((?&amp;seps)(\.|[\w_-]+\.)))))"
displayMode="$functionName">
<functionName>
<nameExpr expr="[\w_-]+((?=\.)|((?'seps'([\t ]|\*&gt;.*|([\n\r]+(.{6}([ D]|\*.*)|.{0,6}$)))+)section((?=\.)|(?&amp;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