Skip to content

Commit 2b913b8

Browse files
dvc94chkasbah
authored andcommitted
anltr: Recognize unicode characters.
1 parent bb43e6e commit 2b913b8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Units.g4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ GIGA: G | G I G A;
1010
MEGA: 'M' | M E G A;
1111
KILO: K | K I L O;
1212
MILI: 'm' | M I L I;
13-
MICRO: U | M I C R O;
13+
MICRO: U | M I C R O | 'µ';
1414
NANO: N | N A N O;
1515
PICO: P | P I C O;
1616

1717
VOLT: V | V O L T;
1818
AMPERE: A | A M P E R E;
1919
WATT: W | W A T T;
20-
OHM: R | O H M | '\u{2126}';
20+
OHM: R | O H M | 'Ω';
2121
FARAD: F | F A R A D;
2222
HENRY: H | H E N R Y;
2323
HERZ: H Z | H E R Z;
@@ -63,4 +63,4 @@ fprefix: GIGA | MEGA | KILO;
6363
time: NUMBER tprefix? SECOND tolerance?;
6464
tprefix: MILI | MICRO | NANO | PICO;
6565

66-
temperature: NUMBER 'u{00b0}'? CELSIUS tolerance?;
66+
temperature: NUMBER '°'? CELSIUS tolerance?;

0 commit comments

Comments
 (0)