aboutsummaryrefslogtreecommitdiff
path: root/src/server/semantic_tokens.odin
Commit message (Collapse)AuthorAgeFilesLines
* #+feature using-stmtTasha Companion2026-01-301-1/+2
| | | | `#+feature using-stmt` is required to build successfully now.
* Add defaultLibrary modifier for builtinske2025-12-171-1/+6
|
* Use client capabilities to check if range semantic token is supported.DanielGavin2025-09-241-3/+5
|
* Add proper support for ranged semantic tokens.semantic_tokens_rangeDanielGavin2025-09-231-1/+4
|
* Correctly parse param default value for semantic typesBrad Lewis2025-09-171-0/+1
|
* Parse fields correctlyBrad Lewis2025-09-071-0/+2
|
* Distinguish between variables and types when parsing globalsBrad Lewis2025-09-071-37/+7
|
* Resolve poly type variablesBrad Lewis2025-08-041-1/+2
|
* Handle semantic token for const global variables returned from functionsBrad Lewis2025-07-281-1/+3
|
* Correctly resolve semantic tokens for basic literals and castsBrad Lewis2025-07-281-13/+15
|
* Check if a value declaration is a comp lit for semantic tokensBrad Lewis2025-07-251-3/+34
|
* New symbol flag for if the symbol is a parameterDanielGavin2025-07-241-3/+6
|
* Move ast.odin to server + add resolve_when_conditionDanielGavin2025-06-201-1/+1
|
* Fix issue with field completions in multi-pointer structs and rename ↵Brad Lewis2025-06-131-1/+1
| | | | `SymbolMultiPointer`
* Fix issues with semantic tokens for ternary when.DanielGavin2024-10-031-1/+1
|
* Remember to go into helper type in semantic tokens.DanielGavin2024-08-101-0/+2
|
* Change odinfmt to use 120 characters instead. Add support for infering Maybe ↵DanielGavin2024-08-101-63/+15
| | | | in comp literals.
* Resolve type in assignments with or_else, or_continue and or_breakDamian Tarnawski2024-07-291-1/+1
|
* Fix extraneous .Type semantic tokenslujaire2024-07-031-24/+24
|
* Merge branch 'master' into renameDanielGavin2024-06-131-9/+17
|\
| * Change setting dyn array length to capacityDamian Tarnawski2024-06-121-1/+1
| |
* | Setup tests for semantic tokens and add one simple testDamian Tarnawski2024-06-131-14/+31
| |
* | Work on file resolveDanielGavin2024-05-291-3/+5
|/
* Add a .Type SymbolType enumDamian Tarnawski2024-05-081-13/+7
|
* Merge pull request #378 from thetarnav/no-symbol-for-nilDanielGavin2024-05-061-3/+4
|\ | | | | Don't make a symbol for `nil`
| * Don't make a symbol for `nil`Damian Tarnawski2024-05-051-3/+4
| | | | | | | | Don't make a symbol for `nil` and enable semantic tokens for `SymbolBasicValue`
* | Add a symbol for explicit `enum.member` selectorsDamian Tarnawski2024-05-051-17/+4
|/
* Add Or_Branch_Expr to semantic tokensDanielGavin2024-05-051-39/+48
|
* SimplifyDamian Tarnawski2024-05-021-8/+7
|
* Highlight import namespace using semantic tokensDamian Tarnawski2024-05-021-4/+49
| | | | | | | Removes highlighting the namespace in import path from tm grammars, and added it instead to the semantic tokens. So it works the same way between editors.
* Fix getting wrong symbol for selectorsDamian Tarnawski2024-04-271-4/+5
|
* Simplify and improve semantic tokens system furtherDamian Tarnawski2024-04-271-641/+240
| | | | | | | | | | | | | | | | | | | | - Remove the remaining tokens for operators, those will be handled by syntax highlighting - Improve `visit_value_decl` mostly around making aliases: ```odin foo :: proc() {} bar :: foo ``` now `bar` will be highlighted as a `.Function` - Add `src` to `SemanticTokenBuilder` to avoid it being passed around to every proc - Tried to reduce the amount of procedures and repeated code Now most of the work is done by `visit_node`, which walks the ast looking for identifiers, and `visit_ident`, which writes the token for that identifier based on it's symbol
* Multiple improvements to semantic tokens featureDamian Tarnawski2024-04-251-479/+279
| | | | | | | | | | | - Removed the reflection mechanism mentioned in #366 - Made `SemanticTokenModifiers` into a `bit_set`. Since modifiers allow multiple flags. - Removed all semantic tokens for keywords, as they WILL be highlighted by the syntax highlighter. - Added a bunch of missing semantic tokens in `visit_node` and `visit_selector` - Added a bit_set visit code to `visit_node` - Added readonly modifiers to value declarations
* support bit_fieldsLaytan Laats2024-04-151-0/+39
| | | | | | They are pretty similar to structs (just a bit simpler) so I piggy backed of that a lot here, added some basic tests and tested the formatting myself.
* Support relative typeDanielGavin2024-03-261-2/+0
|
* Fix issues with empty parameter names treated as "_" by `core:odin/parser`DanielGavin2024-03-181-12/+5
|
* Automatically add shared collection.DanielGavin2024-02-221-1/+1
|
* Remove writing semantic nodes for untyped and basic value symbolsDamian Tarnawski2023-10-261-19/+3
| | | | | | | | | | The result semantic token types were often incorrect for constants and literals. Syntax grammars do a decent job here, but were being overridden by the semantic tokens. I'm not yet familiar enough with the codebase to fix this properly, instead of just removing it.
* Remove more not needed tokens for semantic tokensDanielGavin2023-06-301-8/+0
|
* TypoDanielGavin2023-06-241-1/+1
|
* Don't make semantic tokens for strings, let the grammars handle that.DanielGavin2023-06-241-15/+0
|
* semantic token didn't visit value decls with types correctly.DanielGavin2023-05-061-0/+6
|
* semantic token: visit the len expression in array_typeDanielGavin2023-02-251-0/+1
|
* Fix issue with indexing not resolving correctlyDaniel Gavin2022-11-231-0/+3
|
* Remember to visit foreign decl in semantic tokensDaniel Gavin2022-11-051-0/+2
|
* Fix linux buildDaniel Gavin2022-10-301-14/+22
|
* semantic token is now treating variable procedures and non-mutable the sameDaniel Gavin2022-10-301-1/+3
|
* Add support for matrix typesDaniel Gavin2022-10-271-3/+25
|
* Fix proc type not creating semantic tokens in structsDaniel Gavin2022-10-251-32/+48
|
* Improve smenatic token for distinct typingDaniel Gavin2022-10-251-0/+15
|