fix(parser): align Go and JS parsers with capture grammar spec
Kind prefixes now follow the canonical grammar: `-` for todo, `@time` for event, `!time` for reminder. Removed `*`/`◇`/`▸` as capture aliases (display-layer only). Added `\` escape prefix, `?` query mode, `!pin` flag extraction, `##word` hash escape, and tag lowercasing. Both parsers produce identical results.
This commit is contained in:
@@ -13,9 +13,10 @@ import (
|
||||
type Glyph string
|
||||
|
||||
const (
|
||||
GlyphNote Glyph = "note"
|
||||
GlyphTodo Glyph = "todo"
|
||||
GlyphEvent Glyph = "event"
|
||||
GlyphNote Glyph = "note"
|
||||
GlyphTodo Glyph = "todo"
|
||||
GlyphEvent Glyph = "event"
|
||||
GlyphReminder Glyph = "reminder"
|
||||
)
|
||||
|
||||
type CardType string
|
||||
@@ -30,7 +31,7 @@ const (
|
||||
|
||||
func ValidGlyph(s string) bool {
|
||||
switch Glyph(s) {
|
||||
case GlyphNote, GlyphTodo, GlyphEvent:
|
||||
case GlyphNote, GlyphTodo, GlyphEvent, GlyphReminder:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user