| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The lexer only handled the special `#if 0` case, so valid `#if`, `#elif`, `#else`, and `#endif` lines emitted Error tokens for their hash marks. Recognize complete conditional-directive lines as preprocessor comments and add a golden regression snippet based on the report. Fixes pygments#2858
| Back | FazBrowse Home | New Git URL |
The Vala lexer only special-cased #if 0, so valid #if, #elif, #else, and #endif lines emitted Error tokens for #. This recognizes those lines as preprocessor directives and adds a golden regression snippet based on the report.
Fixes #2858.