miniSql

创建
zgc123@gmail.com authored at 11/19/2023 1:40:15 AM
6136600
Tree
0 Parent(s)
Summary: 1 changed files with 73 additions and 0 deletions.
Added +73 -0
Added +73 -0
diff --git a/minisqlquery-master/src/MiniSqlQuery/MT-Mode.xshd b/minisqlquery-master/src/MiniSqlQuery/MT-Mode.xshd
new file mode 100644
index 0000000..423f07b
--- /dev/null
+++ b/minisqlquery-master/src/MiniSqlQuery/MT-Mode.xshd
@@ -0,0 +1,73 @@
+<?xml version="1.0"?>
+
+<SyntaxDefinition name = "NVelocity" extensions = ".mt;.vm;.nv">
+
+	<Properties>
+		<Property name="LineComment" value="##"/>
+	</Properties>
+
+	<Digits name = "Digits" bold = "false" italic = "false" color = "DarkBlue"/>
+
+	<RuleSets>
+		<RuleSet ignorecase = "false">
+			<Delimiters>~!%^*()-+=|\/{}[]:;"'&lt;&gt; , .?</Delimiters>
+
+			<Span name = "LineDirective1" bold = "true" italic = "false" color = "Purple" stopateol = "true">
+				<Begin>#@get</Begin>
+			</Span>
+
+			<Span name = "LineDirective2" bold = "true" italic = "false" color = "Purple" stopateol = "true">
+				<Begin>#@set</Begin>
+			</Span>
+
+			<Span name = "LineComment" bold = "false" italic = "true" color = "Green" stopateol = "true" escapecharacter="\">
+				<Begin>##</Begin>
+			</Span>
+
+			<Span name = "BlockComment" bold = "false" italic = "true" color = "Green" stopateol = "false">
+				<Begin>#*</Begin>
+				<End>*#</End>
+			</Span>
+
+			<Span name = "VelocityVariable" bold = "false" italic = "false" color = "Blue" stopateol = "false" >
+				<Begin>${</Begin>
+				<End>}</End>
+			</Span>
+
+			<MarkFollowing bold = "false" italic = "false" color = "Blue">$</MarkFollowing>
+
+			<KeyWords name = "GeneralKeywords" bold="true" italic="false" color="Blue">
+				<Key word = "#foreach" />
+				<Key word = "#set" />
+				<Key word = "#if" />
+				<Key word = "#else" />
+				<Key word = "#elseif" />
+				<Key word = "#end" />
+			</KeyWords>
+
+			<KeyWords name = "LoopKeywords" bold="false" italic="false" color="DarkSlateBlue">
+				<Key word = "#beforeall" />
+				<Key word = "#before" />
+				<Key word = "#each" />
+				<Key word = "#after" />
+				<Key word = "#between" />
+				<Key word = "#odd" />
+				<Key word = "#even" />
+				<Key word = "#nodata" />
+				<Key word = "#afterall" />
+			</KeyWords>
+
+			<KeyWords name = "FunctionalSpaces" bold="true" italic="false" color="Green">
+				<Key word = "#macro" />
+				<Key word = "#include" />
+			</KeyWords>
+
+			<KeyWords name = "Literals" bold="true" italic="false" color="Black">
+				<Key word = "false" />
+				<Key word = "true" />
+			</KeyWords>
+
+		</RuleSet>
+	</RuleSets>
+</SyntaxDefinition>
+