osm nope. Just coords please.

This commit is contained in:
Neil 2022-02-15 20:52:02 -08:00
parent 51d0474d95
commit bac29812ec
1 changed files with 5 additions and 3 deletions

View File

@ -165,12 +165,14 @@ scan:
<source> @s0 keyword @s1 => expect_line
{ x->s0 = s0, x->s1 = s1; return x->symbol = SOURCE_RECALL, 1; }
<location> "" / "![" :=> map
<location> "" / "(" :=> map
<location> @s0 keyword @s1 => expect_line
{ x->s0 = s0, x->s1 = s1; return x->symbol = LOCATION_RECALL, 1; }
<map> "![" ws* "osm" ws* "](geo:" @s0 decimal "," @s1 decimal ")" ws*
=> expect_caption
// This was getting a bit tiresome. Sorry compatibility with Diary.
// I like the dd*mm'ss.ss"N way better, but it is a pain to type.
//<map> "![" ws* "osm" ws* "](geo:" @s0 decimal "," @s1 decimal ")" ws*
<map> "(" @s0 decimal "," @s1 decimal ")" => expect_caption
{ x->s0 = s0, x->s1 = s1; return x->symbol = LOCATION, 1; }
<edict> "source"