Skip to content

Commit 4b964b3

Browse files
committed
Fix overzealous OpenMP regex.
The OpenMP regex did not allow for the OpenACC syntax scope to trigger. This has now been fixed and both should be displayed correctly. The only outstanding problem is that the unittest (.snap) does not trigger the right scopes, which means open acc/openmp are not tested thoroughly. I look into it
1 parent 57ab053 commit 4b964b3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Fixes OpenACC syntax highlighting not triggering
13+
1014
## [2.3.0]
1115

1216
### Fixed

syntaxes/openmp_lang.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"patterns": [
3030
{
3131
"name": "meta.openmp.directive",
32-
"begin": "(?i)\\G(\\$(omp\\b)?&?)",
32+
"begin": "(?i)\\G(\\$(omp\\b)&?)",
3333
"beginCaptures": { "1": { "name": "comment.directive.openmp" } },
3434
"end": "(?=[\\n])",
3535
"patterns": [

0 commit comments

Comments
 (0)