| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a bounds-check to WastLexer::GetText to handle the case when
the offset is earlier than token_start (e.g. because GetStringToken
found a newline in the string and reset token_start to point at it).
Also revises GetIdToken -> GetIdChars to stop skipping the initial char
in an annotation delimiter, which is an idchar+ but not an id token.
Also fixes the WastParser to handle EOF when reading for the end of an
annotation, both for code metadata annotations and other kinds.
Previously this produced an infinite loop (but only with
--enable-annotations).
Fixes #2165
|
|
|
|
| |
It's easier to update than gh-pages
|
|
|
| |
Fixes #1180 and #1181.
|
|
|
|
|
|
|
|
| |
* Enable highlighting for Windows build instructions
References: 01e176c, #418.
* Add syntax highlighting to test-files
|
|
|
|
|
|
|
|
|
| |
* Add class LexerSource: it encapsulates reading data from a source,
either buffer or file.
* Add class LexerSourceLineFinder: it uses a LexerSource to read a line
from the source for displaying in errors. It lazily caches line
numbers -> file offsets, so no work is done unless an error occurs.
* Make WastLexer a class instead of a struct.
|
|
|
|
|
|
|
|
|
| |
This also includes a simple codemirror syntax highlighter for the wast
format, using the `simple-mode.js` codemirror plugin.
I've also moved the examples out from `demo.js` to `examples.js`.
The codemirror.css and codemirror.js files are marked as binary so they
don't show up in diffs; we shouldn't be patching them anyway.
|
| |
|
| |
|
|
|