mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
Cosmetic changes and long time fixes for the Makefile editore.
This commit is contained in:
parent
802af6b09c
commit
15447a0c0b
4 changed files with 7 additions and 5 deletions
|
@ -20,7 +20,7 @@ import org.eclipse.jface.text.rules.FastPartitioner;
|
|||
|
||||
/**
|
||||
* MakefileDocumentSetupParticipant
|
||||
* The document setup participant for Ant.
|
||||
* The document setup participant for Makefile.
|
||||
*/
|
||||
public class MakefileDocumentSetupParticipant implements IDocumentSetupParticipant {
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ class MacroDefinitionRule implements IPredicateRule {
|
|||
scanner.unread();
|
||||
|
||||
if (state == FINISH_STATE) {
|
||||
scanToEndOfLine(scanner);
|
||||
//scanToEndOfLine(scanner);
|
||||
return token;
|
||||
}
|
||||
|
||||
|
|
|
@ -78,7 +78,8 @@ public class MakefileCodeScanner extends AbstractMakefileCodeScanner {
|
|||
MultiLineRule defineRule = new MultiLineRule("define", "endef", macroDef); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
defineRule.setColumnConstraint(0);
|
||||
rules.add(defineRule);
|
||||
rules.add(new MacroDefinitionRule(macroDef, other));
|
||||
|
||||
// rules.add(new MacroDefinitionRule(macroDef, other));
|
||||
|
||||
// Add word rule for keywords, types, and constants.
|
||||
// We restring the detection of the keywords to be the first column to be valid.
|
||||
|
|
|
@ -14,8 +14,9 @@ import org.eclipse.jface.text.rules.IWordDetector;
|
|||
|
||||
public class MakefileWordDetector implements IWordDetector {
|
||||
|
||||
private static final String correctStartSpecChars = "%*().><"; //$NON-NLS-1$
|
||||
private static final String correctSpecChars = "@$/\\"; //$NON-NLS-1$
|
||||
//private static final String correctStartSpecChars = "%*().><"; //$NON-NLS-1$
|
||||
private static final String correctStartSpecChars = "%*()><"; //$NON-NLS-1$
|
||||
private static final String correctSpecChars = "@$/\\_"; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* @see IWordDetector#isWordPart(character)
|
||||
|
|
Loading…
Add table
Reference in a new issue