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

[C++] Syntax highlighting error after string ">>" #2042

Closed
andy-hanson opened this issue Aug 4, 2019 · 1 comment
Closed

[C++] Syntax highlighting error after string ">>" #2042

andy-hanson opened this issue Aug 4, 2019 · 1 comment

Comments

@andy-hanson
Copy link

#include <iostream>

int main(void) {
	std::cout << ">>" << std::endl;
}

The closing } is highlighted pink. No such error if ">>" is changed to "aa".

@bumfo
Copy link
Contributor

bumfo commented Sep 3, 2019

This is due to a bug in generic handling in C++.sublime-syntax

the form of '<<' is not possible in path containing generic, and should be excluded, or situations like this is misclassified as generic path, leaving the rest of the file wrong.

bumfo added a commit to bumfo/Packages that referenced this issue Sep 3, 2019
generic_lookahead should not include patterns like '<<', '<<<', which causes bugs like sublimehq#2042
bumfo added a commit to bumfo/Packages that referenced this issue Sep 3, 2019
generic_lookahead should not include patterns like '<<', '<<<', which causes bugs like sublimehq#2042
bumfo added a commit to bumfo/Packages that referenced this issue Sep 3, 2019
generic_lookahead should not include patterns like '<<', '<<<', which causes bugs like sublimehq#2042
@wbond wbond closed this as completed in 6f6a81e Oct 21, 2019
mitranim pushed a commit to mitranim/Packages that referenced this issue Mar 25, 2022
…mehq#2079)

* Fix sublimehq#2042, generic has no form like '<<'

generic_lookahead should not include patterns like '<<', '<<<', which causes bugs like sublimehq#2042

* Apply changes to Objective-C++
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

No branches or pull requests

2 participants