We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24aee53 commit afb654eCopy full SHA for afb654e
src/languages/cilkc.js
@@ -1,18 +1,19 @@
1
-import { insertBefore } from '../util/language-util.js';
2
import c from './c.js';
3
4
/** @type {import('../types.d.ts').LanguageProto<'cilkc'>} */
5
export default {
6
id: 'cilkc',
7
base: c,
8
alias: 'cilk-c',
9
- grammar ({ base }) {
10
- insertBefore(base, 'function', {
11
- 'parallel-keyword': {
12
- pattern: /\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,
13
- alias: 'keyword',
+ grammar () {
+ return {
+ $insert: {
+ 'parallel-keyword': {
+ $before: 'function',
+ pattern: /\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,
14
+ alias: 'keyword',
15
+ },
16
},
- });
- return {};
17
+ };
18
19
};
0 commit comments