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:
@@ -3,9 +3,10 @@ package display
|
||||
import "github.com/lerko/nib/internal/db"
|
||||
|
||||
var glyphMap = map[db.Glyph]string{
|
||||
db.GlyphNote: "—",
|
||||
db.GlyphTodo: "○",
|
||||
db.GlyphEvent: "◇",
|
||||
db.GlyphNote: "—",
|
||||
db.GlyphTodo: "○",
|
||||
db.GlyphEvent: "◇",
|
||||
db.GlyphReminder: "△",
|
||||
}
|
||||
|
||||
var cardGlyphMap = map[db.CardType]string{
|
||||
|
||||
Reference in New Issue
Block a user