1234567891011121314151617181920212223242526272829303132333435363738 |
- /*
- * plugins/hl_bc.json
- *
- * Copyright (C) 2023 bzt (bztsrc@gitlab)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * @brief Syntax highlight rules for bytecode Assembly
- *
- */
- [
- /* 0 comments */ [ "\/\/.*?$", "\/\*.*?\*\/" ],
- /* 1 pseudo */ [ ],
- /* 2 operators */ [ ],
- /* 3 numbers */ [ "[\-]?[0-9][0-9bx]?[0-9\.a-fp]*" ],
- /* 4 strings */ [ "\"", "'" ],
- /* 5 separators */ [ ",", ":", "\n" ],
- /* 6 types */ [ ".data", ".code", "db", "dw", "di", "df" ],
- /* 7 keywords */ [ "debug", "ret", "scall", "call", "jmp", "jz", "jnz", "js", "jns", "sw", "ci", "cf", "bnd", "lea", "adr",
- "sp", "pshci", "pshcf", "pushi", "pushf", "popi", "popf", "cnvi", "cnvf", "ldb", "ldw", "ldi", "ldf",
- "stb", "stw", "sti", "stf", "rdb", "rdw", "rdi", "rdf", "incb", "incw", "inci", "decb", "decw", "deci",
- "not", "neg", "or", "xor", "and", "shl", "shr", "eq", "ne", "lts", "gts", "les", "ges", "ltu", "gtu",
- "leu", "geu", "ltf", "gtf", "lef", "gef", "addi", "subi", "muli", "divi", "modi", "powi", "addf", "subf",
- "mulf", "divf", "modf", "powf" ]
- ]
|