New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perl. Syntax highlight. // operator as a comment #1495
Comments
+1 as I am facing this issue as well in Sublime Text 3.0 (Build 3143). Syntax highlighting is broken for all code after the This can also happen with For example:
|
Fix issue sublimehq#541 with space at the beginnign of a regexp Fix issue sublimehq#1495 and sublimehq#1594 where // can break the syntax highlighting Fix issue sublimehq#1325 and sublimehq#1029 related to regexp modifier Fix issue sublimehq#1326 with variable starting with underscore
Fixes sublimehq#541, sublimehq#1029, sublimehq#1325, sublimehq#1326, sublimehq#1495 Supersedes sublimehq#1556 According to sublimehq#481 this commit provides an Oniguruma free Perl syntax definition written from scratch. OUTLINE 1. fixes all currently open issues 2. much more feature complete 3. completely compatible with new regex engine 4. uses embed to include custom syntaxes within POD and HEREDOCS (CSS,JS,JSON,HTML,SQL,XML) 5. provides a syntax test file 6. uses as much atomic rules from Perl.sublime-syntax and ModernPerl package as possible (with some fixes/modifications) 7. follows the doc http://perldoc.perl.org as close as possible 8. add some snippets with some files renamed to match naming style REMARKS 1. The benchmark tests on a 100k file with all kinds of statements output about 360ms for evaluation on a Windows box. 2. The main focus is to create a robust base for syntax highlighting rather than scoping each language entity/construct in detail. a) Not all meta scoping RFCs are implemented in detail due to some limitations caused by HEREDOC. Especially pushing in/out of `meta.block` or `meta.braces` breaks some HEREDOC constructs. b) Scope names were changed to follow the scope naming guidelines as close as possible and try to use as general names as possible. -> Maybe needs some refines? 3. At the current point the implementation is a work in progress and needs testing by perl power users to a) check for highlighting to work in all situations b) constants/variables/functions are scoped correctly 4. This commit adds some snippets but does not include any completions in favor of https://packagecontrol.io/packages/Perl%20Completions
Should be fixed by the merged PR #1564 |
Is there instruction which steps I should take to be updated to latest version? |
This is just for Perl, you can make more symlinks for other languages. |
It thinks that keyword is
Before installation the keyword was detected as:
and methods are not detected at all
|
The text of target sub:
|
What means "Now // works fine"? Does it mean the current Perl syntax works or does it mean you deleted it to make it work? Just tried the default Perl.sublime-syntax which is bundled with ST3176. It does not highlight everything but at least does not break the code. So I can't tell you the reason as everything works for me. |
still broken in 3176 under debian 9 |
@vsespb This isn't part of the 3176 release. Did you install from this git repo? |
no. i get it - need wait new release after 3176 |
Looks good in 3208. |
This PR proposes to close some already fixed issues, which were not (correctly) referenced in the fixing pull requests. Closes sublimehq#442 Closes sublimehq#685 Closes sublimehq#691 (invalid) Closes sublimehq#795 Closes sublimehq#807 Closes sublimehq#903 Closes sublimehq#1141 Closes sublimehq#1172 Closes sublimehq#1245 Closes sublimehq#1257 Closes sublimehq#1286 Closes sublimehq#1320 Closes sublimehq#1357 Closes sublimehq#1382 (wontfix) Closes sublimehq#1403 Closes sublimehq#1451 Closes sublimehq#1453 (maybe) Closes sublimehq#1472 Closes sublimehq#1495 Closes sublimehq#1540 Closes sublimehq#1542 Closes sublimehq#1565 Closes sublimehq#1576 Closes sublimehq#1625 Closes sublimehq#1880 Closes sublimehq#1898 Closes sublimehq#1940 (invalid)
After // operator all lines is highlighted as comment.
Version 3.0 3143
The text was updated successfully, but these errors were encountered: