Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-05-24 05:48:42 +0000
committerAlexander Kurtakov2017-05-24 06:26:01 +0000
commitf8b74b799d6d85a488dc56305c41cb63dc0faa58 (patch)
treec0d8d45e22a7d8e486db28411171f100b311353f
parent0d229b5e02e141bf3fb37fb7e14c54d951d5ee67 (diff)
downloadorg.eclipse.linuxtools-f8b74b799d6d85a488dc56305c41cb63dc0faa58.tar.gz
org.eclipse.linuxtools-f8b74b799d6d85a488dc56305c41cb63dc0faa58.tar.xz
org.eclipse.linuxtools-f8b74b799d6d85a488dc56305c41cb63dc0faa58.zip
systemtap: Improve editor to highlight try/catch/continue as keywords
Change-Id: I023af94c98a9716da01de7b865b786e979eddd67 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-on: https://git.eclipse.org/r/97802 Tested-by: Hudson CI
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPElementScanner.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPElementScanner.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPElementScanner.java
index 1775b3267d..9570224f99 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPElementScanner.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPElementScanner.java
@@ -35,7 +35,8 @@ public class STPElementScanner extends BufferedRuleBasedScanner {
"while", "if", "delete", "#include", //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
"function", "do", "print", "error", //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
"log", "printd", "printdln", "println", //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
- "sprint", "sprintf", "system", "warn" }; //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
+ "sprint", "sprintf", "system", "warn", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ "continue", "try", "catch" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
/**
*

Back to the top