Skip to content

Commit

Permalink
feat(html): html support (#262)
Browse files Browse the repository at this point in the history
* feat(html): html support

* feat: update README

* feat: moved README checkbox
  • Loading branch information
Noah4ever authored May 6, 2023
1 parent e423bc9 commit 922ba68
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ use 'nvim-treesitter/nvim-treesitter-context'
- [x] `fish`
- [x] `go`
- [x] `graphql`
- [x] `html_tags`
- [x] `ini`
- [x] `java`
- [x] `javascript`
Expand Down Expand Up @@ -119,7 +120,6 @@ use 'nvim-treesitter/nvim-treesitter-context'
- [ ] `hlsl`
- [ ] `hocon`
- [ ] `html`
- [ ] `html_tags`
- [ ] `htmldjango`
- [ ] `http`
- [ ] `jq`
Expand Down
6 changes: 6 additions & 0 deletions queries/html/context.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

([
(element)
(style_element)
(script_element)
] @context)
139 changes: 139 additions & 0 deletions test/test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<!DOCTYPE html>
<html lang="en">
<head>











<title></title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="css/style.css" rel="stylesheet" />



</head>
<style>


.test {





















color: red;


















}


</style>
<body>











<main>











</main>





<ul>
<li></li>
<li>








</li>
<li></li>
</ul>
</body>
<script>
var a = 1;














var b = 2;
function test() {
let test = "asdasd";
}

var c = a + b;
</script>
</html>

0 comments on commit 922ba68

Please sign in to comment.