X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c15969fd0a6280c60d2f35876b5343004fed2b11..3e6377dbb8b69d8d6d0e3e28fe5e02fd7aabe5f8:/Highlight.cpp diff --git a/Highlight.cpp b/Highlight.cpp index e5a476d..4cfc8db 100644 --- a/Highlight.cpp +++ b/Highlight.cpp @@ -20,9 +20,10 @@ /* }}} */ #include "Highlight.hpp" +#include "Parser.hpp" #include "Cycript.tab.hh" -#include "Parser.hpp" +#include "Driver.hpp" static void Skip(const char *data, size_t size, std::ostream &output, size_t &offset, cy::position ¤t, cy::position target) { while (current.line != target.line || current.column != target.column) { @@ -73,11 +74,12 @@ void CYLexerHighlight(const char *data, size_t size, std::ostream &output, bool case hi::Comment: color = CYColor(true, 30); break; case hi::Constant: color = CYColor(false, 31); break; case hi::Control: color = CYColor(false, 33); break; - case hi::Escape: color = CYColor(true, 31); break; + case hi::Error: color = CYColor(true, 31); break; case hi::Identifier: color = CYColor(false, 0); break; case hi::Meta: color = CYColor(false, 32); break; case hi::Nothing: color = CYColor(false, 0); break; case hi::Operator: color = CYColor(false, 36); break; + case hi::Special: color = CYColor(false, 35); break; case hi::Structure: color = CYColor(true, 34); break; case hi::Type: color = CYColor(true, 34); break;