File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 23
23
- ** Project-wide refactorings** can be performed with a single, concise command
24
24
- Avoids wasted time and tokens on failed search/replace operations caused by misplaced spaces, indentations or typos;
25
25
- ** High-level abstractions** for complex refactoring operations via refactoring languages (currently supports Rope syntax);
26
- - ** [ Relative indentation] ( grammar.js#L301-L366 ) ** for easily maintaining proper code structure;
26
+ - ** [ Relative indentation] ( grammar.js#L306-L370 ) ** for easily maintaining proper code structure;
27
27
- Allows fetching or modifying targeted parts of code;
28
- - ** Locations in code** : Doesn't use line numbers. Instead, offers [ more resilient alternatives] ( grammar.js#L241-L297 ) , like:
28
+ - ** Locations in code** : Doesn't use line numbers. Instead, offers [ more resilient alternatives] ( grammar.js#L241-L300 ) , like:
29
29
- ** [ Line] ( grammar.js#L243-L246 ) ** markers. Ex:
30
30
- ` LINE "if name == 'some name':" `
31
31
- ** [ Identifier] ( grammar.js#L248-L251 ) ** markers (` VARIABLE ` , ` FUNCTION ` , ` CLASS ` ). Ex:
Original file line number Diff line number Diff line change 1
1
import logging
2
2
import sys
3
- from pathlib import Path
4
3
from ctypes import cdll , c_void_p
5
4
from os import fspath
5
+ from pathlib import Path
6
6
7
7
from tree_sitter import Language
8
8
14
14
15
15
def language () -> Language :
16
16
"""Load the tree-sitter library for CEDARScript."""
17
-
17
+
18
18
logger = logging .getLogger (__name__ )
19
19
logger .setLevel ("DEBUG" )
20
-
20
+
21
21
# Determine the appropriate library file based on the current architecture
22
22
if sys .platform .startswith ('darwin' ):
23
23
lib_name = 'libtree-sitter-cedar.dylib'
You can’t perform that action at this time.
0 commit comments