Skip to content

Commit 87b7865

Browse files
author
Jeff Larkin
committed
Re-uses fix from #203 for line continuations
1 parent a84bb75 commit 87b7865

File tree

2 files changed

+46
-70
lines changed

2 files changed

+46
-70
lines changed

syntaxes/openacc_lang.json

Lines changed: 23 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,29 @@
33
"scopeName": "source.openacc",
44
"injectionSelector": "comment",
55
"fileTypes": [],
6+
"injections": {
7+
"source.fortran.free - ( string | comment )": {
8+
"patterns": [
9+
{
10+
"include": "#line-continuation-operator"
11+
}
12+
]
13+
},
14+
"string.quoted.double.fortran": {
15+
"patterns": [
16+
{
17+
"include": "#string-line-continuation-operator"
18+
}
19+
]
20+
},
21+
"string.quoted.single.fortran": {
22+
"patterns": [
23+
{
24+
"include": "#string-line-continuation-operator"
25+
}
26+
]
27+
}
28+
},
629
"patterns": [
730
{
831
"name": "meta.openacc.directive",
@@ -481,41 +504,6 @@
481504
}
482505
]
483506
},
484-
"operators": {
485-
"comment":
486-
"Operator that allows a line to be continued on the next line.",
487-
"patterns": [
488-
{
489-
"match": "\\G\\s*(&)",
490-
"captures": {
491-
"1": {
492-
"name": "keyword.operator.line-continuation.openacc"
493-
}
494-
}
495-
},
496-
{
497-
"contentName": "meta.line-continuation.openacc",
498-
"begin": "\\s*(&)",
499-
"beginCaptures": {
500-
"1": {
501-
"name": "keyword.operator.line-continuation.openacc"
502-
}
503-
},
504-
"end": "(?i)^(?:\\s*(&))?",
505-
"endCaptures": {
506-
"1": {
507-
"name": "keyword.operator.line-continuation.openacc"
508-
}
509-
},
510-
"patterns": [
511-
{
512-
"name": "invalid.error.openacc",
513-
"match": "\\S*"
514-
}
515-
]
516-
}
517-
]
518-
},
519507
"synchronization-constructs": {
520508
"patterns": [
521509
{

syntaxes/openmp_lang.json

Lines changed: 23 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,29 @@
33
"scopeName": "source.openmp",
44
"injectionSelector": "comment",
55
"fileTypes": [],
6+
"injections": {
7+
"source.fortran.free - ( string | comment )": {
8+
"patterns": [
9+
{
10+
"include": "#line-continuation-operator"
11+
}
12+
]
13+
},
14+
"string.quoted.double.fortran": {
15+
"patterns": [
16+
{
17+
"include": "#string-line-continuation-operator"
18+
}
19+
]
20+
},
21+
"string.quoted.single.fortran": {
22+
"patterns": [
23+
{
24+
"include": "#string-line-continuation-operator"
25+
}
26+
]
27+
}
28+
},
629
"patterns": [
730
{
831
"name": "meta.openmp.directive",
@@ -505,41 +528,6 @@
505528
}
506529
]
507530
},
508-
"operators": {
509-
"comment":
510-
"Operator that allows a line to be continued on the next line.",
511-
"patterns": [
512-
{
513-
"match": "\\G\\s*(&)",
514-
"captures": {
515-
"1": {
516-
"name": "keyword.operator.line-continuation.openmp"
517-
}
518-
}
519-
},
520-
{
521-
"contentName": "meta.line-continuation.openmp",
522-
"begin": "\\s*(&)",
523-
"beginCaptures": {
524-
"1": {
525-
"name": "keyword.operator.line-continuation.openmp"
526-
}
527-
},
528-
"end": "(?i)^(?:\\s*(&))?",
529-
"endCaptures": {
530-
"1": {
531-
"name": "keyword.operator.line-continuation.openmp"
532-
}
533-
},
534-
"patterns": [
535-
{
536-
"name": "invalid.error.openmp",
537-
"match": "\\S*"
538-
}
539-
]
540-
}
541-
]
542-
},
543531
"synchronization-constructs": {
544532
"patterns": [
545533
{

0 commit comments

Comments
 (0)