pangloss / vim-javascript

Vastly improved Javascript indentation and syntax support in Vim.
http://www.vim.org/scripts/script.php?script_id=4452
3.79k stars 357 forks source link

Add BigInt #1239

Closed vieira closed 3 years ago

vieira commented 3 years ago

Add syntax highlighting to BigInt literals and to the BigInt built-in object as defined in tc39/proposal-bigint.

const prevMaxSafe = BigInt(Number.MAX_SAFE_INTEGER);
const maxPlusOne = prevMaxSafe + 1n;

const zero = 0n;
const max = 2n ** (64n - 1n) - 1n;
const one = 0b1n;
const hex = 0xFn;