Commits

Clams  committed 088008c

Add Fix for indentNextLine (from trelos)
Also add highlighting for number like 2e-9

  • Participants
  • Parent commits f1bfcd8

Comments (0)

Files changed (2)

File SystemVerilog.tmLanguage

 					</dict>
 					<dict>
 						<key>match</key>
+						<string>\b(\d+(e|E)(\+|-)?[0-9]+)\b</string>
+						<key>name</key>
+						<string>constant.numeric.systemverilog</string>
+					</dict>
+					<dict>
+						<key>match</key>
 						<string>\b(\d+(fs|ps|ns|us|ms|s)?)\b</string>
 						<key>name</key>
 						<string>constant.numeric.systemverilog</string>

File SystemVerilog.tmPreferences

 				<string>*/</string>
 			</dict>
 		</array>
-<!-- 		<key>decreaseIndentPattern</key>
-		<string>\s*(end)\b</string>
-		<key>increaseIndentPattern</key>
-		<string>.*\b(begin)\b</string> -->
 		<key>decreaseIndentPattern</key>
 		<string>\s*(end|endfunction|endcase|endmodule|endclass|endgenerate|endinterface|join|join_any|join_none|endsequence|endproperty|endgroup|endclocking|endprogram|endpackage|endconfig|endtable|endprimitive)\b</string>
-		<!-- <string>(\s*end\b)|(^\s*(endfunction|endcase|endmodule||endgenerate|join|join_any|join_none)\b)</string> -->
 		<key>increaseIndentPattern</key>
 		<string>(.*\bbegin\b)|(^\s*(function|case|module|class|task|generate|interface|fork|sequence|property|covergroup|clocking|program|package|config|table|primitive)\b)</string>
-		<!-- <key>indentNextLinePattern</key>
-		<string>\b(if|else|for|foreach)\b</string> -->
+		<key>bracketIndentNextLinePattern</key>
+		<string>^\s*(if|else|for|foreach)\b</string>
+		<key>disableIndentNextLinePattern</key>
+		<string>(.*\bbegin\b)</string>
 	</dict>
 	<key>uuid</key>
 	<string>38DBCCE5-2005-410C-B7D7-013097751AC8</string>