Compare commits

...

4 Commits

Author SHA1 Message Date
warg 4119f4387a chore: update project url 2026-05-28 00:23:42 +02:00
warg 45938c25e9 refactor(queries): refine capture groups 2026-05-17 07:49:02 +02:00
warg 83fa4442d4 chore: remove comment 2026-05-17 07:17:28 +02:00
warg bc37f8290c docs: update README.md 2026-05-17 07:12:17 +02:00
7 changed files with 10 additions and 15 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.13)
project(tree-sitter-tumblr
VERSION "0.1.0"
DESCRIPTION "Tumblr grammar for tree-sitter"
HOMEPAGE_URL "git.owall.dev/warg/tree-sitter-tumblr"
HOMEPAGE_URL "git.owall.se/warg/tree-sitter-tumblr"
LANGUAGES C)
option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
Generated
+1 -1
View File
@@ -1,5 +1,5 @@
LANGUAGE_NAME := tree-sitter-tumblr
HOMEPAGE_URL := git.owall.dev/warg/tree-sitter-tumblr
HOMEPAGE_URL := git.owall.se/warg/tree-sitter-tumblr
VERSION := 0.1.0
# repository
+4 -4
View File
@@ -20,7 +20,7 @@ every install path needs a build step that runs `make`.
```lua
{
"https://git.owall.dev/warg/tree-sitter-tumblr",
"https://git.owall.se/warg/tree-sitter-tumblr",
build = "make",
}
```
@@ -38,14 +38,14 @@ vim.api.nvim_create_autocmd("PackChanged", {
})
vim.pack.add({
{ src = "https://git.owall.dev/warg/tree-sitter-tumblr" },
{ src = "https://git.owall.se/warg/tree-sitter-tumblr" },
})
```
### Manual
```sh
git clone https://git.owall.dev/warg/tree-sitter-tumblr /path/to/repo
git clone https://git.owall.se/warg/tree-sitter-tumblr /path/to/repo
cd /path/to/repo && make
```
@@ -67,7 +67,7 @@ need to be on `runtimepath` too. With `nvim-treesitter`:
Files are recognised as `tumblr` by extension or by double-extension:
- `*.tumblr`
- `*.tumblr.html` (the convention used by the `tumblr.vim` plugin)
- `*.tumblr.html`
## Development
Generated
+1 -1
View File
@@ -5,7 +5,7 @@
"type": "module",
"repository": {
"type": "git",
"url": "git+git.owall.dev/warg/tree-sitter-tumblr.git"
"url": "git+git.owall.se/warg/tree-sitter-tumblr.git"
},
"funding": "",
"license": "Apache-2.0",
+2 -3
View File
@@ -88,10 +88,9 @@
((variable_modifier) @number
(#match? @number "^[0-9]+(sq)?$"))
(variable_prefix) @keyword
(prefix_argument) @variable
(variable_prefix) @keyword.directive
(prefix_argument) @constant
(lang_tag) @string.special
(lang_text) @string
(attribute_name) @attribute
-4
View File
@@ -1,7 +1,3 @@
; All non-tag content is HTML. injection.combined concatenates every
; content node so an HTML tag opened in one chunk can close in another
; (across a {block:Foo}...{/block:Foo}). HTML's own injection queries
; then take over for <style> and <script>, giving us CSS and JS for free.
((content) @injection.content
(#set! injection.language "html")
(#set! injection.combined))
+1 -1
View File
@@ -24,7 +24,7 @@
}
],
"links": {
"repository": "https://git.owall.dev/warg/tree-sitter-tumblr"
"repository": "https://git.owall.se/warg/tree-sitter-tumblr"
}
},
"bindings": {