Skip to content
This repository

Fix issue 341: block comments in C lexer #13

Merged
merged 1 commit into from over 2 years ago

2 participants

rekado Jeff Wheeler
rekado

Added a rule to cover C block comments that end on the very same line.

See this bug report:
http://code.google.com/p/yi-editor/issues/detail?id=341

fix issue 341 87c9765
Jeff Wheeler jeffwheeler merged commit 42a526f into from October 12, 2011
Jeff Wheeler jeffwheeler closed this October 12, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Oct 11, 2011
fix issue 341 87c9765
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  yi/src/library/Yi/Lexer/C.x
1  yi/src/library/Yi/Lexer/C.x
@@ -125,6 +125,7 @@ c :-
125 125
 
126 126
 <0> {
127 127
   "//"[^\n]*                                    { c commentStyle }
  128
+  "/*".*"*/"                                    { c blockCommentStyle }
128 129
 
129 130
  "/*" @reservedop*                              { m (subtract 1) blockCommentStyle }
130 131
 
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.