UNPKG
mathup
Version:
latest (1.0.0)
1.0.0
1.0.0-rc.7
1.0.0-rc.6
1.0.0-rc.5
1.0.0-rc.4
1.0.0-rc.3
1.0.0-rc.2
1.0.0-rc.1
1.0.0-rc.0
1.0.0-beta.6
1.0.0-beta.5
1.0.0-beta.4
1.0.0-beta.3
1.0.0-beta.2
1.0.0-beta.1
1.0.0-alpha.3
1.0.0-alpha.2
1.0.0-alpha.1
Easy MathML authoring tool with a quick to write syntax
runarberg.github.io/mathup/
runarberg/mathup
mathup
/
src
/
compiler
/
tokenizer
/
scanners
/
quote.js
17 lines
(13 loc)
•
303 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import
{ handleQuote }
from
"./utils.js"
;
/**
@type
{
import("./index.js").Scanner
} */
export
default
function
quoteScanner
(
char, input, { start }
) {
if
(char !==
'"'
) {
return
null
; }
const
{ end, value } =
handleQuote
(start, input);
return
{
type
:
"text"
, value, end, }; }