mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
add support for '#' style of comment. Pr 41960.
This commit is contained in:
parent
03576ad8a7
commit
6695a014e9
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,7 @@ import org.eclipse.jface.text.rules.WordRule;
|
|||
public class AsmPartitionScanner extends RuleBasedPartitionScanner {
|
||||
|
||||
|
||||
private final static String SKIP= "__skip";
|
||||
//private final static String SKIP= "__skip";
|
||||
|
||||
|
||||
public final static String ASM_MULTILINE_COMMENT= ICColorConstants.C_MULTI_LINE_COMMENT;
|
||||
|
@ -112,6 +112,7 @@ public class AsmPartitionScanner extends RuleBasedPartitionScanner {
|
|||
|
||||
// Add rule for single line comments.
|
||||
rules.add(new EndOfLineRule("//", single_comment));
|
||||
rules.add(new EndOfLineRule("#", single_comment)); //$NON-NLS-1$
|
||||
|
||||
// Add rule for strings and character constants.
|
||||
rules.add(new SingleLineRule("\"", "\"", string, '\\'));
|
||||
|
|
Loading…
Add table
Reference in a new issue