@citisen/litearea 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,57 +0,0 @@
1
- // ─── reference grammars ─────────────────────────────────────────────────────
2
- //
3
- // The core of litearea ships NO syntax. There is no built-in language, no
4
- // language identifier to switch on, and nothing in `src/core/` that knows what a
5
- // font stack or a favicon state is. That is the whole claim of the library, and
6
- // these two files are how it is checked rather than merely asserted.
7
- //
8
- // They are two real DSLs, taken from two real plugins, expressed entirely as data
9
- // the engine is handed:
10
- //
11
- // dshFontQueryGrammar() a CSS font-family list with a weight written beside
12
- // the family it belongs to
13
- // dshSentryStyleGrammar() a line-oriented appearance document, one line per
14
- // session state
15
- //
16
- // Between them they exercise every part of the contract: regex rules and
17
- // vocabulary rules, multi-word phrases, a lookahead, a scope FUNCTION that reads
18
- // the analysis, a dynamic vocabulary resolved from the host machine, all four
19
- // diagnostic sources, completion with both insertion modes, hover, and semantic
20
- // decorations. If a future change to the engine broke any of that, these two files
21
- // would stop working — which is why they are in the test suite and why the
22
- // documentation points at them as the worked examples.
23
- //
24
- // They are importable because a host should not have to retype a language that
25
- // already exists. They are NOT built in: pass one to `createEditor` or import
26
- // nothing from this module and write your own.
27
-
28
- export {
29
- DSH_FONT_INFO_CODES,
30
- FONT_COMMON_FAMILIES,
31
- FONT_GENERIC_FAMILIES,
32
- FONT_WEIGHT_LABELS,
33
- FONT_WEIGHT_SCALE,
34
- FONT_WEIGHT_WORDS,
35
- dshFontQueryGrammar,
36
- fontFaceWeights,
37
- fontWeightWord,
38
- quoteFontFamily,
39
- type DshFontEntry,
40
- type DshFontProblem,
41
- type DshFontQueryOptions,
42
- type DshFontState,
43
- } from './dshFont.js'
44
-
45
- export {
46
- DSH_SENTRY_COLORS,
47
- DSH_SENTRY_STATES,
48
- DSH_SENTRY_VOCABULARY,
49
- dshSentryStyleGrammar,
50
- type DshSentryLine,
51
- type DshSentryLook,
52
- type DshSentryProblem,
53
- type DshSentrySlot,
54
- type DshSentryState,
55
- type DshSentryStyleOptions,
56
- type DshSentryWord,
57
- } from './dshSentry.js'