Document rules version clause.

Fixes https://gitlab.com/kicad/code/kicad/issues/8201
This commit is contained in:
Jeff Young 2021-04-15 09:51:56 +01:00
parent 4920692bcd
commit 9a282f081a
1 changed files with 5 additions and 1 deletions

View File

@ -54,6 +54,8 @@
### Examples ### Examples
(version 1)
(rule HV (rule HV
(constraint clearance (min 1.5mm)) (constraint clearance (min 1.5mm))
(condition "A.NetClass == 'HV'")) (condition "A.NetClass == 'HV'"))
@ -78,7 +80,9 @@
### Notes ### Notes
Version clause must be the first clause. Version clause must be the first clause. It indicates the syntax version of the file so that
future rules parsers can perform automatic updates. It should be
set to "1".
Rules should be ordered by specificity. Later rules take Rules should be ordered by specificity. Later rules take
precedence over earlier rules; once a matching rule is found precedence over earlier rules; once a matching rule is found