Skip to content

Commit

Permalink
fix: detect downloaded copybooks as COBOL (eclipse-che4z#2407)
Browse files Browse the repository at this point in the history
  • Loading branch information
VitGottwald authored and chacebot committed Jul 26, 2024
1 parent 2a98ec6 commit 0c4e862
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clients/cobol-lsp-vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@
"COBOL"
],
"configuration": "./syntaxes/lang-config.json",
"firstLine": "^[0-9 ]{6}([*].*|[ Dd] *([Ii][Dd]([Ee][Nn][Tt][Ii][Ff][Ii][Cc][Aa][Tt][Ii][Oo][Nn])? +[Dd][Ii][Vv][Ii][Ss][Ii][Oo][Nn][. ]|[0-9][0-9] +[@#$A-Z][-A-Z0-9]*[. ]|[*](CBL|PROCESS) ).*)$|^([0-9].{5})?[ ]*(CBL|PROCESS) "
"firstLine": "^[0-9 ]{6}([*].*|[ Dd] *([Ii][Dd]([Ee][Nn][Tt][Ii][Ff][Ii][Cc][Aa][Tt][Ii][Oo][Nn])? +[Dd][Ii][Vv][Ii][Ss][Ii][Oo][Nn][. ]|[0-9][0-9] +[@#$A-Z][-A-Z0-9]*[. ]|[*](CBL|PROCESS) ).*)$|^([0-9].{5})?[ ]*(CBL|PROCESS) ",
"filenamePatterns": [
"**/broadcommfd.cobol-language-support/*/copybooks/**"
]
},
{
"id": "expcobol",
Expand Down

0 comments on commit 0c4e862

Please sign in to comment.