Closed marcelarie closed 1 year ago
@marcelarie Thanks for reporting. And yes, this is a issue with grammar. Let me try to fix it this week!
Hey, might be the same issue where the commented #
makes "username" blue there:
and without comment:
my %config = (
"foo", {
"url", "http://foo.bar",
"port", "8088", # 8080 default
"api_key", "",
"username", "",
"password", "",
},
);
have a good day!
The syntax breaks in multiple files. Here is the original issue I opened at nvim-treesitter
And the regex:
$tx->res->dom =~ m!"changeLocation":\{"menu":\{"label":\["[^"]+","([0-9]+)"\]\}! && $1;
it happens the same with lines like this
if ( my $variations_script = $dom->at( '#twisterJsInitializer_feature_div script' ) ) {
where the
#
breaks the syntax.I use the last version of nvim nightly and Mojolicious to work with perl. It seems that the problems are related with the syntax of the library.
This still happens.
but the #
issue does not anymore. :)
yea the #
issue shouldn't happen, or atleast now!
But I'm still working on the regex based patterns in perl. Should release the version soon :)
Thanks for the work, I can't wait.
I have publish version 0.3.0 . This should parse all these syntax properly. Let me know otherwise. :)
The m!
syntax is fixed :) Now I realized of the qr//
highlight error:
if it's needed I can make a separate issue for that one.
@marcelarie , could you paste the expression here ? I can take a look at what's failing.
@marcelarie , could you paste the expression here ? I can take a look at what's failing.
Of course, there you go:
qr/^@{[ $self->merchant_name ]}$/i
# ^ q making the trouble (?)
m!"changeLocation":\{"menu":\{"label":\["[^"]+","([0-9]+)"\]\}!
# ^ m making the trouble (?)
$brand =~ s/^de //;
# ^ s making the trouble (?)
@marcelarie the above patter matcher syntax should be fixed in the latest commit. I will wait around and run some test before publishing the next npm version
@marcelarie the above patter matcher syntax should be fixed in the latest commit. I will wait around and run some test before publishing the next npm version
nice, thank you!!
split(/ *, */,$Var)
also breaks syntax highlighting, among other patterns that I couldn't identify yet. Sometimes it only breaks partialy, changing colors only for a sub name, eg.
split(/ *, */,$Var)
works as expected. And I see the original issue reported here is also fixed. So closing this issue.
The syntax breaks in multiple files. Here is the original issue I opened at nvim-treesitter
And the regex:
it happens the same with lines like this
where the
#
breaks the syntax.I use the last version of nvim nightly and Mojolicious to work with perl. It seems that the problems are related with the syntax of the library.