-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: decrement end line number of code content node range by 1 (#88)
fix: decrement end line number of code content node range by 1. fix #87. testing: add R chunk to qmd example testing: add norg example testing: add ts example testing: document debug-example script
- Loading branch information
Showing
7 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#! /bin/env bash | ||
# usage: ./tests/debug-example.sh $1 | ||
|
||
echo "choose an example file based on number of extension." | ||
echo "e.g. ./tests/debug-example.sh 01" | ||
echo "e.g. ./tests/debug-example.sh qmd" | ||
echo "Options" | ||
ls ./tests/examples/ | ||
|
||
if [ -z "$1" ]; then | ||
echo "Please provide a file extension or a number" | ||
echo "And call this from the project root directory" | ||
exit 1 | ||
fi | ||
|
||
nvim ./tests/examples/*$1* -c ":lua require'otter'.dev_setup()" |
File renamed without changes.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@document.meta | ||
title: Norg Example | ||
description: This is an example of Norg document. | ||
@end | ||
|
||
* Norg Example | ||
|
||
** Code | ||
@code lua | ||
print("Hello, Norg!") | ||
@end | ||
|
||
|
||
@code python | ||
print("Hello world!") | ||
import numpy as np | ||
x = np.zeros(10) | ||
@end | ||
|
||
** Other things | ||
This is a paragraph. | ||
|
||
- This is a list. | ||
- This is another list. | ||
|
||
This is another paragraph. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const foo = html` | ||
<div> | ||
<p>hello</p> | ||
</div> | ||
`; | ||
|
||
const bar = css` | ||
.foo { | ||
color: rgb(0, 0, 0); | ||
} | ||
`; | ||
|
||
const lua = lua` | ||
local foo = "bar" | ||
print(foo) | ||
`; |