Skip to content
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

[MATLAB] Comment at end of line and continuation #2561

Closed
senden9 opened this issue Oct 24, 2020 · 0 comments · Fixed by #2562
Closed

[MATLAB] Comment at end of line and continuation #2561

senden9 opened this issue Oct 24, 2020 · 0 comments · Fixed by #2562

Comments

@senden9
Copy link

senden9 commented Oct 24, 2020

Comments at end of line and continuation are currently not highlighted as comment. See https://www.mathworks.com/help/matlab/matlab_prog/comments.html for a official reference of my minimal example.

  • Sublime Version: 3.2.2, Build 3211
  • OS Version: Ubuntu 20.04.1 LTS

Minimal example:

var_name = 1 + 2 ... comment at end of line and continuation
    3;

Screenshot in Sublime:
image
We see here that after the ... the text is highlighted as code. But it should be highlighted as a comment.

deathaxe added a commit to deathaxe/sublime-packages that referenced this issue Oct 24, 2020
wbond pushed a commit that referenced this issue Nov 9, 2020
* [Matlab] Fix ellipsis comments

Fixes #2561

* [Matlab] Highlight comments after continuations

According to review comments `...` is actually a continuation operator.

So this commit modifies the existing pattern to highlight everything
after a `...` as comment.line.
mitranim pushed a commit to mitranim/Packages that referenced this issue Mar 25, 2022
* [Matlab] Fix ellipsis comments

Fixes sublimehq#2561

* [Matlab] Highlight comments after continuations

According to review comments `...` is actually a continuation operator.

So this commit modifies the existing pattern to highlight everything
after a `...` as comment.line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant