This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import Parser from "npm:tree-sitter"; | |
| import treeSitterTypescript from "npm:tree-sitter-typescript"; | |
| const code = ` | |
| /** | |
| * This is a doc comment | |
| * | |
| * alsdkfjlkj | |
| */ | |
| function foo(a: A): void; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const std = @import("std"); | |
| const Self = @This(); | |
| source: [:0]const u8, | |
| pos: usize = 0, | |
| state: State = .start, | |
| pub fn next(self: *Self) !Token { | |
| var start = self.pos; | |
| var text_end: usize = 0; | 
OlderNewer