Add comment syntax to Rule Syntax Help
Fixes https://gitlab.com/kicad/code/kicad/issues/5458
This commit is contained in:
parent
c0bc47810a
commit
70b74b1fcd
|
@ -385,6 +385,7 @@ void PANEL_SETUP_RULES::OnSyntaxHelp( wxHyperlinkEvent& aEvent )
|
|||
wxString msg;
|
||||
msg << "<b>" << _( "Top-level Clauses" ) << "</b>";
|
||||
msg << "<pre>"
|
||||
"# version must be first clause in file\r"
|
||||
"(version <number>)\r"
|
||||
"(rule <rule_name> <rule_clause> ...)\r"
|
||||
"\r</pre><b>";
|
||||
|
@ -393,6 +394,7 @@ void PANEL_SETUP_RULES::OnSyntaxHelp( wxHyperlinkEvent& aEvent )
|
|||
"<pre>"
|
||||
"(constraint <constraint_type> ...)\r"
|
||||
"(condition \"<expression>\")\r"
|
||||
"(layer \"<layer name>\")\r"
|
||||
"\r</pre>"
|
||||
"<b>";
|
||||
msg << _( "Constraint Types" );
|
||||
|
@ -426,6 +428,7 @@ void PANEL_SETUP_RULES::OnSyntaxHelp( wxHyperlinkEvent& aEvent )
|
|||
" (condition \"A.netclass == 'HV'\"))\r"
|
||||
"\r"
|
||||
"(rule HV_HV\r"
|
||||
" # wider clearance between HV tracks\r"
|
||||
" (constraint clearance (min \"1.5mm + 2.0mm\"))\r"
|
||||
" (condition \"A.netclass == 'HV' && B.netclass == 'HV'\"))\r"
|
||||
"</pre>";
|
||||
|
|
Loading…
Reference in New Issue