JS Directives Highlight
The plugin adds semantic tokens for pragmas from JavaScript, TypeScript, ESLint, Next JS
Pragmas are declared as string literals
ECMAScript
pragma |
token |
'use asm' |
string.quoted.pragma.asm |
'use strict' |
string.quoted.pragma.srtict |
NextJS
pragma |
token |
'use client' |
string.quoted.pragma.client |
'use server' |
string.quoted.pragma.server |
TypeScript
pragma |
token |
@ts-expect-error |
comment.pragma.ts.error |
@ts-check |
comment.pragma.ts.check |
@ts-nocheck |
comment.pragma.ts.nocheck |
@ts-ignore |
comment.pragma.ts.ignore |
ESLint
pragma |
token |
eslint-disable |
comment.pragma.eslint.disable |
eslint-disable-next-line |
comment.pragma.eslint.nextline |
eslint-disable-line |
comment.pragma.eslint.nextline |
eslint-enable |
comment.pragma.eslint.enable |
| |