Skip to content

Commit 0019a9b

Browse files
authored
Merge pull request #276 from gilch/gitattributes
GitHub `.lissp` syntax highlighting and pipeline maintenance
2 parents 9bb8f7d + d79afd2 commit 0019a9b

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This configuration file is part of the Hissp source code repository,
2+
# copyright 2025 Matthew Egan Odendahl
3+
# SPDX-License-Identifier: Apache-2.0
4+
*.lissp linguist-language=lisp linguist-vendored

.github/workflows/test-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This configuration file is part of the Hissp source code repository,
2-
# copyright 2019, 2021, 2022, 2024 Matthew Egan Odendahl
2+
# copyright 2019, 2021, 2022, 2024, 2025 Matthew Egan Odendahl
33
# SPDX-License-Identifier: Apache-2.0
44
name: Test package
55

@@ -15,12 +15,12 @@ jobs:
1515
uses: actions/checkout@v2
1616
- name: Lint with black
1717
uses: psf/black@stable
18-
- name: Set up Python 3.10.15
18+
- name: Set up Python 3.10.18
1919
uses: actions/setup-python@v1
2020
with:
21-
python-version: 3.10.15
21+
python-version: 3.10.18
2222
- name: Cache pip
23-
uses: actions/cache@v1
23+
uses: actions/cache@v4
2424
with:
2525
path: ~/.cache/pip
2626
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}

src/hissp/compiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ def tuple_(self, form: tuple) -> str:
190190
"""Compile `call`, `macro`, or `special` forms."""
191191
match form:
192192
case [["lambda", params, *body] as head] if (
193-
is_node(head) and not self.parameters(params)
194-
):
193+
is_node(head)
194+
) and not self.parameters(params):
195195
return self.body(body) # progn optimization
196196
case head, *_ if is_str(head):
197197
return self.special(form)

tests/test_compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_post_compile_warn(self):
7575
self.assertIn(
7676
"""\
7777
# ZeroDivisionError: division by zero
78-
#\N{space}
78+
#\N{SPACE}
7979
8080
print(
8181
'oops')"""

0 commit comments

Comments
 (0)