Debug Support for SKILL Commands
The SKILL parser provides immediate feedback and helps debug the syntax with the following features:
-
Matching parenthesis (
() ), brackets ( [] ), and braces ( {})
-
Using the right bracket (
]) to close all open parentheses within a command block.
The right bracket does not balance open parenthesis beyond the selected command block.
-
Displaying incorrect commands with light yellow or light gray-yellow background colors.
-
Providing customizable colors for various syntax elements. You can customize the foreground and background colors of various syntax elements by using the
envSetVal() function or specifying them in your .cdsenv file at any time. The various syntax elements are as follows:
|
Syntax
|
Description
|
|
ciwCommentColor
|
Used for single line and multi-line comments
Single line comments begin with a semicolon (;) and multi-line comments are surrounded by "/*" and "*/"
|
|
ciwParenColor
|
Used for parentheses (())
|
|
ciwBracketColor
|
Used for square brackets ( [] )
|
|
ciwBraceColor
|
Used for curly braces ({ })
|
|
ciwSymbolColor
|
Used for explicit symbols and for numeric ranges, such as "0:10" or "3.4:4.8"
Explicit symbols are words preceded by a single quote (')
|
|
ciwKeywordColor
|
Used for the known set of SKILL keywords, such as abs, acos, cdar, cddr, and so on
|
|
ciwStringColor
|
Used for strings enclosed within double quotes
|
|
ciwMatchParenColor
|
Used for the background color to highlight the parenthesis, brace or bracket next to the text cursor or that matches the nearest one
|
|
ciwMismatchParenColor
|
Used as the background color to highlight mismatched parentheses, braces and brackets.
Mismatched colors are highlighted only on the closing side. If there are too many opening parentheses, braces or brackets, they will not be highlighted as mismatched instead the command area background will be set to one of the mismatched command colors.
If there are too many closing parentheses, braces or brackets within a command block, the first unmatched closing parenthesis, brace or bracket will be highlighted with this color, and any subsequent parentheses, braces and brackets will also be highlighted with this color within the same command block until balance is restored.
|
|
ciwUnmatchQuoteColor
|
Used as the background color for strings that do not have a closing double quote, or that start and end on different lines
|
|
ciwMismatchCmdColor1
|
Used to indicate an incomplete syntax status for the command blocks that have a white background
Syntax is said to be incomplete if it contains unmatched parentheses, braces, brackets, double quotes or multi-line comments.
|
|
ciwMismatchCmdColor2
|
Same as ciwMismatchCmdColor1 only that this is used for command blocks that have a light gray background
|
Return to top