• Joined on 2023-11-10
ps pushed to tree-sitter-working at ps/4coder 2025-08-06 04:18:34 +00:00
45b7ae5e2a Languages can supply their own color overrides
ps pushed to tree-sitter-working at ps/4coder 2025-08-05 22:46:42 +00:00
504d902ddd Make initial parse and code index generation happen async
4d356ef7b9 Remove code_index__hash_file, it no longer does anything
507f4a9d04 Stop shifting nest lists - they are re-created each frame
Compare 3 commits »
ps pushed to tree-sitter-working at ps/4coder 2025-08-04 07:51:26 +00:00
1507f414b1 Cleaning up temp code, unused struct members, and using a Scratch_Block to store buffer_contents during parsing
ps deleted branch incremental-updates from ps/4coder 2025-08-04 07:34:22 +00:00
ps pushed to tree-sitter-working at ps/4coder 2025-08-04 07:34:15 +00:00
8ad2b5bbff Incrementally update global_code_index.name_hash
a92e364e37 Clean up re-parse range identification logic
6d77862b78 Collapse process query match logic back into tree_sitter_code_index_update_process_query_match
30ac43ce66 Prevent re-parsing the whole file by identifying the node containing the edit, or the node immediately before and after the edit, and parsing only those. Fall back to root for empty file case
12322796c2 Incrementally re-parse notes and scope delimiters within the range of a single edit.
Compare 9 commits »
ps pushed to incremental-updates at ps/4coder 2025-08-04 07:33:30 +00:00
8ad2b5bbff Incrementally update global_code_index.name_hash
a92e364e37 Clean up re-parse range identification logic
Compare 2 commits »
ps created branch incremental-updates in ps/4coder 2025-08-03 07:00:35 +00:00
ps pushed to incremental-updates at ps/4coder 2025-08-03 07:00:35 +00:00
6d77862b78 Collapse process query match logic back into tree_sitter_code_index_update_process_query_match
30ac43ce66 Prevent re-parsing the whole file by identifying the node containing the edit, or the node immediately before and after the edit, and parsing only those. Fall back to root for empty file case
12322796c2 Incrementally re-parse notes and scope delimiters within the range of a single edit.
6d7f1281b2 Allocate Scope_Delims and Notes from free list before allocating in chunks
69dc4f8e04 Remove Code_Index_Note_Ptr_Array from the codebase, use Code_Index_Note_List instead
Compare 7 commits »
ps pushed to tree-sitter-working at ps/4coder 2025-07-17 02:43:42 +00:00
ee082e42d1 tree_sitter_parse_full_file_async no longer updates the code index
a072229d20 Removing unused function get_token_array_from_buffer_no_wait
a34a24f4e7 Passing the old and new ranges from buffer_edit_range to Buffer_Tree_Sitter_Data so it can be accessed in the tick for incremental code index updating
b56bd7caa8 Move code index updating to happen to modified buffers on the tick hook. This will unify the separate paths for updating the code index.
94991304b5 Temporarily move all tree-sitter operations to be synchronous
Compare 5 commits »
ps pushed to tree-sitter-working at ps/4coder 2025-07-14 18:22:52 +00:00
3f9b803c62 Move tree-sitter code index updating to an async process to unblock the ui while processing large files
ae7440aa0b custom_render_buffer only requests the token array if it's being used for a feature the user actually requested since requesting the tokens needs to take the lock on the token array.
84b1b15fbb Implement get_token_array_from_buffer_no_wait to return an empty array if the lex task is currently running
Compare 3 commits »
ps pushed to tree-sitter-working at ps/4coder 2025-07-13 21:37:35 +00:00
9ecf49d278 Add typescript support and document how to add a language
a5f13529c3 Set a per-language flag for enabling virtual indentation
5ed8767819 Buffering code index updates when there are many modified buffers within a single frame
Compare 3 commits »
ps pushed to tree-sitter-working at ps/4coder 2025-07-13 20:27:40 +00:00
18428ec90d Pull tree_sitter_code_index_update_single_buffer out as it's own routine, and use it in tree_sitter_parse_asyn__inner to avoid setting the buffer_modified flag
ps pushed to tree-sitter-working at ps/4coder 2025-07-13 19:05:26 +00:00
54b162faa4 Pull tree_sitter_code_index_update_single_buffer out as it's own routine, and use it in tree_sitter_parse_asyn__inner to avoid setting the buffer_modified flag
ps pushed to tree-sitter-working at ps/4coder 2025-07-13 18:22:07 +00:00
5ccd6dd2ab Implemented tree_sitter_code_index_update_tick - populates Code_Index_Nests and Code_Index_Notes from each languages Tags query
58374ba625 Incorporating the nest query into the cpp tags query
67e0420eb1 Indenting 4coder_code_index.cpp
336a98f701 Switched to using the default highlight and tags queries for cpp, jai, bash.
c5a462993d Pull language registration into individual per-language files
Compare 7 commits »
ps pushed to tree-sitter-working at ps/4coder 2025-07-12 00:18:26 +00:00
324a78ae1e Implemented function and type queries.
086ac34c4d Jai syntax highlighting
Compare 2 commits »
ps pushed to tree-sitter-working at ps/4coder 2025-07-10 16:14:42 +00:00
79695eca2c tree sitter logic handles edits to a parsed buffer
ps created branch tree-sitter-working in ps/4coder 2025-07-10 15:54:05 +00:00
ps pushed to tree-sitter-working at ps/4coder 2025-07-10 15:54:05 +00:00
43fb4a757a Implement Tree_Sitter_Language_Definition, handle registering languages by extension, and looking up the appropriate language definition for a buffer.
7caaed736b Initial tree sitter usage:
1a97b41257 Add tree sitter to compile command
8a918eef82 Checking for color support in build scripts
d615358064 Updated build scripts to use common include flags
Compare 6 commits »
ps pushed to master at ps/4coder 2025-07-08 02:40:17 +00:00
d8d99eefdd Removing tracking for generated files
73492010b3 render_buffer no longer overwrites the cpp token coloring for keywords
Compare 2 commits »
ps pushed to master at ps/4coder 2025-07-07 22:16:16 +00:00
3dafcdd950 QOL underline all visible instances of the token the cursor is within