Skip to content

Commit fcd1936

Browse files
committed
Small changes
1 parent e256c4b commit fcd1936

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
- **Project-wide refactorings** can be performed with a single, concise command
2424
- Avoids wasted time and tokens on failed search/replace operations caused by misplaced spaces, indentations or typos;
2525
- **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;
2727
- 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:
2929
- **[Line](grammar.js#L243-L246)** markers. Ex:
3030
- `LINE "if name == 'some name':"`
3131
- **[Identifier](grammar.js#L248-L251)** markers (`VARIABLE`, `FUNCTION`, `CLASS`). Ex:

src/cedarscript_grammar/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import logging
22
import sys
3-
from pathlib import Path
43
from ctypes import cdll, c_void_p
54
from os import fspath
5+
from pathlib import Path
66

77
from tree_sitter import Language
88

@@ -14,10 +14,10 @@
1414

1515
def language() -> Language:
1616
"""Load the tree-sitter library for CEDARScript."""
17-
17+
1818
logger = logging.getLogger(__name__)
1919
logger.setLevel("DEBUG")
20-
20+
2121
# Determine the appropriate library file based on the current architecture
2222
if sys.platform.startswith('darwin'):
2323
lib_name = 'libtree-sitter-cedar.dylib'

0 commit comments

Comments
 (0)