https://bugs.kde.org/show_bug.cgi?id=462944
Bug ID: 462944
Summary: FR: add Syntax highlighting for COBOL
Classification: Frameworks and Libraries
Product: frameworks-syntax-highlighting
Version: unspecified
Platform: unspecified
OS: All
Status: REPORTED
Severity: wishlist
Priority: NOR
Component: syntax
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Currently this is missing.
I would be able to help with this (providing language information like reserved
words) but seek someone "knowledgable" who would be able to place it correctly
in the syntax definition file and can commit that.
The first question would be what dialect and reference-format to support (or
deciding to have for example 2 definitions).
Background for the later: there is the "commonly used" and "historical" format
which has (normally) up to 80 columns, where only column 8-72 contain "code"
(column 6 is a marker for line comments and similar, named "indicator", column
1-6,73+ ignored there) and the modern "free-form reference-format" (no marker
line, code everywhere).
I don't know if the framework allows to use a reference, like "based on X" in
which case variants may be possible.
In general - because this is still what is used most - I'd be mainly interested
in "fixed-form reference-format" (the one with the "indicator").
As a starter: that would be the comment definition:
<DetectChar attribute="Comment" context="comment" char="*" column="6"/>
<DetectChar attribute="Comment" context="comment" char="/" column="6"/>
<Detect2Chars attribute="Comment" context="comment" char="*"
char2=">"/>
extension (ACUCOBOL-GT, can be added in "general" definitions as it would be
otherwise invalid outside of a string literal):
<DetectChar attribute="Comment" context="comment" char="|" />
--
You are receiving this mail because:
You are watching all bug changes.