[ { "type" : "quotation", "patterns" : [ "\"(?:[^\"]|\\\\.)*\"", "\'[^\']\'" ], "priority" : true }, { "type" : "comment", "patterns" : [ "//[^\n]*" ], "priority" : true }, { "type" : "comment", "range" : { "start" : "/\\*", "end" : "\\*/" }, "priority" : true }, { "type" : "function", "patterns" : [ "\\b[A-Za-z0-9_]+(?=\\()" ] }, { "type" : "keyword", "patterns" : [ "\\balignas\\b", "\\balignof\\b", "\\band\\b", "\\band_eq\\b", "\\basm\\b", "\\bassert\\b", "\\bauto\\b", "\\bbitand\\b", "\\bbitor\\b", "\\bbreak\\b", "\\bcase\\b", "\\bcatch\\b", "\\bcompl\\b", "\\bcomplex\\b", "\\bconst\\b", "\\bconst_cast\\b", "\\bconstexpr\\b", "\\bcontinue\\b", "\\bdecltype\\b", "\\bdefault\\b", "\\bdelete\\b", "\\bdo\\b", "\\bdynamic_cast\\b", "\\belse\\b", "\\bexplicit\\b", "\\bexport\\b", "\\bextern\\b", "\\bfalse\\b", "\\bfinal\\b", "\\bfor\\b", "\\bfriend\\b", "\\bgoto\\b", "\\bif\\b", "\\bimaginary\\b", "\\binline\\b", "\\bmutable\\b", "\\bnew\\b", "\\bnoexcept\\b", "\\bnoreturn\\b", "\\bnot\\b", "\\bnot_eq\\b", "\\bNULL\\b", "\\bnullptr\\b", "\\boperator\\b", "\\bor\\b", "\\bor_eq\\b", "\\boverride\\b", "\\bprivate\\b", "\\bprotected\\b", "\\bpublic\\b", "\\bregister\\b", "\\breinterpret_cast\\b", "\\brequires\\b", "\\breturn\\b", "\\bsignals\\b", "\\bsizeof\\b", "\\bslots\\b", "\\bstatic\\b", "\\bstatic_assert\\b", "\\bstatic_cast\\b", "\\bswitch\\b", "\\btemplate\\b", "\\bthis\\b", "\\bthread_local\\b", "\\bthrow\\b", "\\bthrows\\b", "\\btrue\\b", "\\btry\\b", "\\btypedef\\b", "\\btypeid\\b", "\\btypename\\b", "\\busing\\b", "\\bvirtual\\b", "\\bvolatile\\b", "\\bwhile\\b", "\\bxor\\b", "\\bxor_eq\\b" ] }, { "type" : "type", "patterns" : [ "\\bbool\\b", "\\bchar16_t\\b", "\\bchar32_t\\b", "\\bchar\\b", "\\bclass\\b", "\\bdouble\\b", "\\benum\\b", "\\bfloat\\b", "\\bint16_t\\b", "\\bint32_t\\b", "\\bint64_t\\b", "\\bint8_t\\b", "\\bint\\b", "\\bint_fast16_t\\b", "\\bint_fast32_t\\b", "\\bint_fast64_t\\b", "\\bint_fast8_t\\b", "\\bint_least16_t\\b", "\\bint_least32_t\\b", "\\bint_least64_t\\b", "\\bint_least8_t\\b", "\\bintmax_t\\b", "\\bintptr_t\\b", "\\blong\\b", "\\bnamespace\\b", "\\bshort\\b", "\\bsigned\\b", "\\bsize_t\\b", "\\bstruct\\b", "\\buint16_t\\b", "\\buint32_t\\b", "\\buint64_t\\b", "\\buint8_t\\b", "\\buint_fast16_t\\b", "\\buint_fast32_t\\b", "\\buint_fast64_t\\b", "\\buint_fast8_t\\b", "\\buint_least16_t\\b", "\\buint_least32_t\\b", "\\buint_least64_t\\b", "\\buint_least8_t\\b", "\\buintmax_t\\b", "\\buintptr_t\\b", "\\bunion\\b", "\\bunsigned\\b", "\\bvoid\\b", "\\bwchar_t\\b" ] }, { "type" : "directive", "patterns" : [ "#[a-z]+\\b" ] }, { "type" : "number", "patterns" : [ "\\b[0-9]+\\b" ] }, { "type" : "quotation", "patterns" : [ " <[^<>\\s]*>$" ] } ]