c++ lexer doesn't recognize #include with numbers

Issue #1195 resolved
Anonymous created an issue

The regular expression on line 230 of the c++ lexer c_cpp.py only recognizes include files with lower case letters only. I think it should include numbers as well.

Comments (2)

  1. Georg Brandl repo owner

    If you're referring to the regex in analyse_text, this is just to get some indication whether the source could be C++. In this case, it matches the typical C++ headers like <string>. Are there digits in any of these?

  2. Log in to comment