Skip to content
Permalink
Browse files
Updated lexer for HLSL.
Added some operators, and I'm pretty sure TOKEN_ELLIPSIS isn't used in
 the D3D preprocessor or HLSL.
  • Loading branch information
icculus committed Feb 12, 2009
1 parent 44b8bb4 commit 47f0003553b052f804a984bdbaea0fba573b71b8

File 3 of 3 in 47f0003

@@ -82,7 +82,18 @@ scanner_loop:
(["] (ESC|any\[\n\\"])* ["])
{ RET(TOKEN_STRING_LITERAL); }
"..." { RET(TOKEN_ELLIPSIS); }
">>=" { RET(TOKEN_RSHIFTASSIGN); }
"<<=" { RET(TOKEN_LSHIFTASSIGN); }
"+=" { RET(TOKEN_ADDASSIGN); }
"-=" { RET(TOKEN_SUBASSIGN); }
"*=" { RET(TOKEN_MULTASSIGN); }
"/=" { RET(TOKEN_DIVASSIGN); }
"%=" { RET(TOKEN_MODASSIGN); }
"^=" { RET(TOKEN_XORASSIGN); }
"&=" { RET(TOKEN_ANDASSIGN); }
"|=" { RET(TOKEN_ORASSIGN); }
"++" { RET(TOKEN_INCREMENT); }
"--" { RET(TOKEN_DECREMENT); }
">>" { RET(TOKEN_RSHIFT); }
"<<" { RET(TOKEN_LSHIFT); }
"&&" { RET(TOKEN_ANDAND); }

0 comments on commit 47f0003

Please sign in to comment.