From 119d8fd2e2d4424933933d76f8a9b138ed59fb47 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 10 May 2023 11:19:55 -0300 Subject: [PATCH] [Electro Grammar][Added] Support for "WATT" and xxxx/yyyy - Not just "Watts" - xxxx/yyyy for text like "SMD/SMT" --- kibot/resources/parsers/electro.lark | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kibot/resources/parsers/electro.lark b/kibot/resources/parsers/electro.lark index a1cbbd8c..f739a3bb 100644 --- a/kibot/resources/parsers/electro.lark +++ b/kibot/resources/parsers/electro.lark @@ -25,7 +25,7 @@ ?main: capacitor | inductor | resistor | led // All we ignore -crap: CNAME | NUMBER +crap: CNAME | NUMBER | CNAME "/" CNAME // Whitespace and separators _WS: WS _SEP: _WS | /[,;]/ @@ -172,7 +172,7 @@ _FARAD: "F"i "arad"i? _OHM: "ohm"i "s"i? | "Ω" | "Ω" _HENRY: "h"i "enry"i? _VOLT: "Volt"i "s"i? | "V"i -_WATTS: "W"i "atts"i? +_WATTS: "W"i ("atts"i | "att"i)? // Used for percent _PLUSMINUS: "+/-" | "±" | "+-" // Size