Open FALLAI-Denis opened 7 months ago
Related issue:
This rule could work without the problem described in issue #402:
{
"begin": "(?i:exec\\s+sql)",
"name": "string.quoted.cobol.sql",
"patterns": [
{
"match": "(\\:([0-9a-zA-Z\\-_])*)",
"name": "variable.cobol"
},
{
"match": "(--.*)",
"name": "comment.line.modern"
},
{
"include": "source.sql"
}
],
"end": "(?i:end\\-exec)",
"endCaptures": "string.quoted.cobol.sql"
},
PS: rule for SQL comment is not mandatory if problem describe in #402 was solved, « source.sql » apply rule for SQL comment.
But COBOL floating comment « *> » should be managed in SQL comment.
Question: which extension(s) manage « source.sql »? For my tests on textmate improvement I desactivate « IBM Db2 for z/os developer » and SQL statement still managed…
that's not how "endCaptures"
work
it should be "endCaptures": { "0": { "name": "string.quoted.cobol.sql" } }
Description of the enhancement requested
Hi,
We would like the texmate COBOL grammar manage comments included in SQL statements.
COBOL code in IBM Z Open Editor:
SQL code in IBM Db2 for z/OS Developer:
Thanks.