|
46 | 46 | ]
|
47 | 47 | },
|
48 | 48 | {
|
49 |
| - "begin": "(?i)\\b(copyin)\\s*(\\()", |
| 49 | + "begin": "(?i)\\b(copyin|copyout|copy|create|delete|no_create|present|attach|detach|device|host)\\s*(\\()", |
50 | 50 | "beginCaptures": {
|
51 | 51 | "1": { "name": "string.regexp.openacc" },
|
52 | 52 | "2": {
|
|
116 | 116 | "patterns": [{ "include": "$self" }]
|
117 | 117 | },
|
118 | 118 | {
|
119 |
| - "begin": "(?i)\\b(device_type)\\s*(\\()", |
| 119 | + "begin": "(?i)\\b(device_type|device_num|default_async)\\s*(\\()", |
120 | 120 | "beginCaptures": {
|
121 | 121 | "1": { "name": "string.regexp.openacc" },
|
122 | 122 | "2": {
|
|
151 | 151 | },
|
152 | 152 | {
|
153 | 153 | "name": "string.regexp.openacc",
|
154 |
| - "match": "(?i)\\b(async)(\\(\\d+\\))?\\b" |
| 154 | + "match": "(?i)\\b(async|wait)(\\(\\d+\\))?\\b" |
155 | 155 | },
|
156 | 156 | {
|
157 | 157 | "name": "string.regexp.openacc",
|
|
503 | 503 | },
|
504 | 504 | "synchronization-constructs": {
|
505 | 505 | "patterns": [
|
506 |
| - { |
507 |
| - "begin": |
508 |
| - "(?ix) \\G\\s+( barrier |(end\\s*)?master |(end\\s*)?ordered |(end\\s*)?task\\s*group |taskwait )\\b", |
509 |
| - "beginCaptures": { "1": { "name": "string.regexp.openacc" } }, |
510 |
| - "end": "(?=[$\\n])", |
511 |
| - "patterns": [{ "include": "#invalid-word" }] |
512 |
| - }, |
513 |
| - { |
514 |
| - "begin": "(?i)\\G\\s+(flush)\\b", |
515 |
| - "beginCaptures": { "1": { "name": "string.regexp.openacc" } }, |
516 |
| - "end": "(?=[$\\n])", |
517 |
| - "patterns": [{ "include": "$self" }] |
518 |
| - }, |
519 | 506 | {
|
520 | 507 | "begin": "(?i)\\G\\s+(atomic)\\b",
|
521 | 508 | "beginCaptures": { "1": { "name": "string.regexp.openacc" } },
|
|
541 | 528 | },
|
542 | 529 | { "include": "#invalid-word" }
|
543 | 530 | ]
|
544 |
| - }, |
545 |
| - { |
546 |
| - "begin": "(?i)\\G\\s+(cancel)\\b", |
547 |
| - "beginCaptures": { "1": { "name": "string.regexp.openacc" } }, |
548 |
| - "end": "(?=[$\\n])", |
549 |
| - "patterns": [ |
550 |
| - { |
551 |
| - "begin": "(?i)\\G\\s+(do|parallel|sections|taskgroup)\\b", |
552 |
| - "beginCaptures": { |
553 |
| - "1": { "name": "string.regexp.openacc" } |
554 |
| - }, |
555 |
| - "end": "(?=[$\\n])", |
556 |
| - "patterns": [] |
557 |
| - }, |
558 |
| - { "include": "#invalid-word" } |
559 |
| - ] |
560 |
| - }, |
561 |
| - { |
562 |
| - "begin": "(?i)\\G\\s+(cancellation\\s+point)\\b", |
563 |
| - "beginCaptures": { "1": { "name": "string.regexp.openacc" } }, |
564 |
| - "end": "(?=[$\\n])", |
565 |
| - "patterns": [ |
566 |
| - { |
567 |
| - "name": "string.regexp.openacc", |
568 |
| - "match": "(?i)\\G\\s+(do|parallel|sections|taskgroup)\\b" |
569 |
| - }, |
570 |
| - { "include": "#invalid-word" } |
571 |
| - ] |
572 |
| - }, |
573 |
| - { |
574 |
| - "begin": "(?i)\\G\\s+((end\\s*)?critical)\\b", |
575 |
| - "beginCaptures": { "1": { "name": "string.regexp.openacc" } }, |
576 |
| - "end": "(?=[$\\n])", |
577 |
| - "patterns": [] |
578 | 531 | }
|
579 | 532 | ]
|
580 | 533 | },
|
|
0 commit comments