jeff-hykin / better-cpp-syntax

💾 The source of VS Code's C++ syntax highlighting
GNU General Public License v3.0
155 stars 30 forks source link

perl syntax highlight problem with $_tmp (_ prefixed variables) #533

Open gullevek opened 3 years ago

gullevek commented 3 years ago

Checklist

The code with a problem is:

$_
$_foo
$__foo
$foo
$a_foo

It looks like:

Theme: Monokai

Variables with _ prefix do not highlight

Screen Shot 2021-01-26 at 15 24 00

Variable scrop with only _

Screen Shot 2021-01-26 at 15 27 34

Correct variable scope with all other variable names

Screen Shot 2021-01-26 at 15 24 28

Wrong scope for _ with letters

Screen Shot 2021-01-26 at 15 24 34

It should look like:

All variables prefix with _ and some character following should be highlighted as variables. Currently they are seen als perl source only