1
0
Fork 0
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:
Alain Magloire 2003-09-22 03:24:00 +00:00
parent 03576ad8a7
commit 6695a014e9

View file

@ -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, '\\'));