From d0c2732961d213d5f6e32032d1b5464a2a4f396b Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com> Date: Sun, 26 Nov 2017 06:46:49 -0500 Subject: [PATCH] Highlight types too. --- grammars/pseudocode.cson | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/grammars/pseudocode.cson b/grammars/pseudocode.cson index 8df6291..52f6e46 100644 --- a/grammars/pseudocode.cson +++ b/grammars/pseudocode.cson @@ -8,7 +8,11 @@ foldingStopMarker: "\\*\\*/|^\\s*\\}" name: "pseudocode" patterns: [ { - match: "REQUIRE|ENSURE|EXTENDS|ABSTRACT" + match: " [A-Z][a-z][a-zA-Z0-9]*" + name: "entity.other.attribute-name.pseudocode" + }, + { + match: "REQUIRE|ENSURE" name: "entity.name.tag.pseudocode" }, { @@ -51,18 +55,18 @@ patterns: [ match: "(END )?CLASS" name: "entity.name.class.pseudocode" }, + { + match: "EXTENDS|ABSTRACT" + name: "entity.name.class.pseudocode" + }, { match: "THIS" - name: "entity.other.attribute-name.pseudocode" + name: "entity.name.tag.pseudocode" }, { match: "INPUT|OUTPUT" name: "support.function.pseudocode" }, - { - match: "String|Int|Float|Map|List|Set" - name: "entity.other.attribute-name.pseudocode" - }, { match: "<=|>=|<>|!=|==|>|≠|<" name: "punctuation.definition.bold.pseudocode" @@ -134,6 +138,6 @@ patterns: [ name: "constant.character.escape.pseudocode" } ] - } + }, ] scopeName: "source.pseudocode" -- GitLab