Repository navigation
v0.11.2
Fixes
- The server no longer stops on a snippet. Tools other than the scanners lexed files without their language's syntax: a JavaScript regexp holding a quote read as a string to the end of the file, a snippet range ran past its definition and the server panicked. Every reader of tokens now uses the scanner's configuration, and a range that does not fit the file is refused.
- Names stay within their language. A name used in one language no longer counts as a use of a definition in an unrelated one, so a JavaScript variable no longer reaches Rust tests.
- A documentation heading is no class. A struct sharing its name with a heading resolves its methods again.
- Rust aliases and unit structs end at their semicolon instead of taking the next item into their range and snippet.
Tools
get_code_snippetnames the lines of other definitions of the same name in the file (also_defined_at) and takesmax_lines, with the line it would go on at.
The snapshot format and the scanner identity changed; the first analyse after upgrading rebuilds the graph.
Install
- Homebrew:
brew install attackwave/glasir/glasir - Scoop: add the bucket
Attackwave/scoop-glasir, then runscoop install glasir