From a8256910d40a0eee85bf539a3f120c9d92485f3f Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 26 Jul 2016 23:50:23 +0200 Subject: o Working version with support for Arduino parts. --- KicadNetLexer.g4 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'KicadNetLexer.g4') diff --git a/KicadNetLexer.g4 b/KicadNetLexer.g4 index 55bda85..e10f7e7 100644 --- a/KicadNetLexer.g4 +++ b/KicadNetLexer.g4 @@ -8,23 +8,25 @@ QUOTE: '"'; CODE: 'code'; COMP: 'comp'; FIELD: 'field'; +LIBSOURCE: 'libsource'; +LIBPART: 'libpart'; +LIB: 'lib'; NAME: 'name'; NET: 'net'; NODE: 'node'; NUM: 'num'; +PART: 'part'; PIN: 'pin'; REF: 'ref'; TYPE: 'type'; VALUE: 'value'; - -//STRING: '"' (~[\\"] | '\\' [\\"])* '"'; STRING: '"' ~["]* '"'; INTEGER: [0-9]+; ID - : [/+~\_\-\.\*/a-zA-Z0-9]+ + : [/+~\_\-\.\*\?/a-zA-Z0-9]+ ; BlockComment -- cgit v1.2.3