summaryrefslogtreecommitdiff
path: root/.gitattributes
Commit message (Collapse)AuthorAgeFilesLines
* Improve lexing and parsing of invalid annotations (again) (#2166)Keith Winstein2023-03-101-0/+2
| | | | | | | | | | | | | | | 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
* Move documentation to docs/ directoryBen Smith2020-01-171-4/+4
| | | | It's easier to update than gh-pages
* run-tests.py works properly with python3 (#1285)Ben Smith2020-01-081-2/+3
| | | Fixes #1180 and #1181.
* Add WAST highlighting to *.txt files in tests directories (#590)John Gardner2017-08-031-0/+8
| | | | | | | | * Enable highlighting for Windows build instructions References: 01e176c, #418. * Add syntax highlighting to test-files
* Cleanup Lexer (#466)Ben Smith2017-06-021-0/+4
| | | | | | | | | * 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.
* Use codemirror for wast2wasm JS demo (#428)Ben Smith2017-05-111-0/+2
| | | | | | | | | 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.
* Rename all wasm prefixes to wabt (#298)Ben Smith2017-01-311-1/+1
|
* more work on the demo, looks pretty goodBen Smith2016-04-171-0/+2
|
* fix line endingsBen Smith2016-03-041-0/+11