Skip to content

Instantly share code, notes, and snippets.

@boydaihungst
Last active March 3, 2023 07:33
Show Gist options
  • Save boydaihungst/0dda7965f191977a8b376ca59646fade to your computer and use it in GitHub Desktop.
Save boydaihungst/0dda7965f191977a8b376ca59646fade to your computer and use it in GitHub Desktop.
nvim-rainbow-error
; interface a {}
(object_type
(("{" @opening)
("}" @closing))) @container
; not work
; const obj = { ...(true ? {} : {}) };
(parenthesized_expression
(("(" @opening)
(")" @closing))) @container
; not work
; const a = objectB['propertyC'];
(subscript_expression
(("[" @opening)
("]" @closing))) @container
; not work
; const c = []
(array
(("[" @opening)
("]" @closing))) @container
; not work
; import { funcA } from "moduleA"
(named_imports
(("{" @opening)
("}" @closing))) @container
; not work
; export { interfaceA } from "moduleA"
(export_clause
(("{" @opening)
("}" @closing))) @container
; not work
; const d = (): Promise<boolean> => {return Promise.resolve(true);}
; const e = {propB: Promise<unknown>}
(type_arguments
(("<" @opening)
(">" @closing))) @container
; not work
; enum f {
; propB = 'value',
; }
(enum_body
(("{" @opening)
("}" @closing))) @container
interface a {}
const obj = { ...(true ? {} : {}) };
const objectB = {
propertyC: true
}
const a = objectB['propertyC'];
const c = []
import { funcA } from "moduleA"
export { interfaceA } from "moduleA"
const d = (): Promise<boolean> => {return Promise.resolve(true);}
const e = {propB: Promise<unknown>}
enum f {
propB = 'value',
}
@boydaihungst
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment