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 function name differently highlighted in a declaration and definition #879
Comments
vidarh
added a commit
to vidarh/rouge
that referenced
this issue
Jan 18, 2019
…ghting 1. void foo(); without space before ";" does not highlight correctly. 2. else if() in certain contexts highlights incorrectly. 3. any error in a function definition or declaration has the potential to cause incorrect highlighting further down in the file. Contains minor changes to Objc-C lexer to fix dependencies on the C lexer that were broken by the C lexer fix.
pyrmont
added a commit
to pyrmont/rouge
that referenced
this issue
May 12, 2019
…ghting (#37) This fixes the following: 1. `void foo();` without space before `;` did not highlight correctly; 2. `else if()` in certain contexts highlights incorrectly; and 3. any error in a function definition or declaration has the potential to cause incorrect highlighting further down in the file. Contains minor changes to Obj-C lexer to fix dependencies on the C lexer that were broken by the C lexer fix.
pyrmont
pushed a commit
to pyrmont/rouge
that referenced
this issue
May 17, 2019
This commit fixes the following: 1. `void foo();` without space before `;` does not highlight correctly. 2. `else if()` in certain contexts highlights incorrectly. 3. any error in a function definition or declaration has the potential to cause incorrect highlighting further down in the file. This also ontains minor changes to Objective-C lexer to fix dependencies on the C lexer that were broken by the C lexer fix. This fixes rouge-ruby#879 and rouge-ruby#1009.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider the following C code
which gets highlighted by rouge as follows
In the function declaration the name
foo
is highlighted asn
while in the definition it is highlighted asfn
. This behaviour is different than in pygments where the name of a function is also highlighted asfn
in a declaration.Is there a way to highlight the function name in the declaration also as
fn
?The text was updated successfully, but these errors were encountered: