fix(package): hemar: treesitter language name

This commit is contained in:
2025-11-27 19:13:07 +00:00
parent 345f94742e
commit 8048c4adff
2 changed files with 153 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
module.exports = grammar({ module.exports = grammar({
name: "mytempl", name: "hemar",
rules: { rules: {
source_file: $ => repeat($.element), source_file: $ => repeat($.element),

View File

@@ -41,15 +41,15 @@ log notice "running"
# #
# # fucntion tag # # fucntion tag
# function # function
# "compute" language function-body # 'compute' language function-body
# "compute" - function-body # 'compute' - function-body
# #
# language # language
# "dash" # 'dash'
# "plpgsql" # 'plpgsql'
# #
# function-body # function-body
# "" # ''
# '0020' . '10FFFF', function-body # '0020' . '10FFFF', function-body
# #
# function-character # function-character
@@ -58,12 +58,73 @@ log notice "running"
# #
# # path # # path
# path # path
# "." # '.'
# segmented-path # segmented-path
# #
# segmented-path # segmented-path
# segment # segment
# segment "." segmented-path # Syntax scheme:
#
# hemar
# elements
#
# elements
# element
# element ws elements
#
# element
# tag
# text
#
# text
# text-item
# text-item text
#
# text-item
# '0020' . '10FFFF' - '{'
# nopatern
#
# tag
# '{[' ws path ws ']}'
# '{[' ws loop-statement ws ']}'
# '{[' ws include-header ws ']}'
# '{[' ws "end" ws ']}'
# '{[' ws function ws ']}'
# '{[' ws '{[' ws ']}'
#
# # loop tag
# loop-statemant
# "for" string "in" path
#
# # include tag
# include-header
# "include" path
#
# # fucntion tag
# function
# 'compute' language function-body
# 'compute' - function-body
#
# language
# 'dash'
# 'plpgsql'
#
# function-body
# ''
# '0020' . '10FFFF', function-body
#
# function-character
# '0020' . '10FFFF' - ']'
# ncpatern
#
# # path
# path
# '.'
# segmented-path
#
# segmented-path
# segment
# segment '.' segmented-path
# #
# segment # segment
# string # string
@@ -77,17 +138,26 @@ log notice "running"
# #
# # types # # types
# string # string
# character # unquoted-string
# character string # quoted-string
# #
# character # unquoted-string
# '0020' . '10FFFF' - '"' - '\' - '.' - ']' # unquoted-character
# unquoted-character quoted-string
#
# unquoted-character
# '0020' . '10FFFF' - '"' - '\' - '.' - ws - ']'
# ']' '0020' . '10FFFF' - '"' - '\' - '.' - ws - '}'
#
# quoted-string
# unquoted-character
# unquoted-character string
#
# quoted-character
# '0020' . '10FFFF' - '"' - '\'
# '\' escape # '\' escape
# ncpatern
# #
# escape # escape
# '.'
# ']}'
# '"' # '"'
# '\' # '\'
# '/' # '/'
@@ -97,7 +167,6 @@ log notice "running"
# 'r' # 'r'
# 't' # 't'
# 'u' hex hex hex hex # 'u' hex hex hex hex
# ws
# #
# hex # hex
# digit # digit
@@ -117,7 +186,7 @@ log notice "running"
# #
# # paterns # # paterns
# ws # ws
# "" # ''
# '\x20' ws # '\x20' ws
# '\x0a' ws # '\x0a' ws
# '\x0d' ws # '\x0d' ws
@@ -126,8 +195,72 @@ log notice "running"
# nopatern # nopatern
# '{' '0020' . '10FFFF' - '[' # '{' '0020' . '10FFFF' - '['
# #
# segment
# string
# index
#
# index
# '\' digit
# '\' onenine digits
# '\' '-' digit
# '\' '-' onenine digits
#
# # types
# string
# unquoted-string
# quoted-string
#
# unquoted-string
# unquoted-character
# unquoted-character quoted-string
#
# unquoted-character
# '0020' . '10FFFF' - '"' - '\' - '.' - ws - ']'
# ']' '0020' . '10FFFF' - '"' - '\' - '.' - ws - '}'
#
# quoted-string
# unquoted-character
# unquoted-character string
#
# quoted-character
# '0020' . '10FFFF' - '"' - '\'
# '\' escape
# ncpatern # ncpatern
# ']' '0020' . '10FFFF' - '}' #
# escape
# '"'
# '\'
# '/'
# 'b'
# 'f'
# 'n'
# 'r'
# 't'
# 'u' hex hex hex hex
#
# hex
# digit
# 'A' . 'F'
# 'a' . 'f'
#
# digits
# digit
# digit digits
#
# digit
# '0'
# onenine
#
# onenine
# '1' . '9'
#
# # paterns
# ws
# ''
# '\x20' ws
# '\x0a' ws
# '\x0d' ws
# '\x09' ws
# AST Plex: # AST Plex: