
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
tree-sitter-hygen-template
Advanced tools
Tree-sitter grammar for Hygen templates.
It extends the tree-sitter-embedded-template
grammar.
bash
(optional):
highlight of metadata.value
when metadata.key
is sh
javascript
(optional): highlight of code
nodesregex
(optional):
highlight of metadata.value
when metadata.key
is after
, before
or
skip_if
hygen.nvim
: plugin that integrates
this grammar to your Neovim
configuration.To be added
To be added
You can get the built files from the release
branch. If you
have specific instructions for your editor, PR's are welcome.
Thanks to content
node of tree-sitter-embedded-template
grammar, dynamic injections can be attached to
template body.
Just add .hygen
to the end of the file name, i.e.:
index.html.hygen
.gitignore.hygen
.tsconfig.json.hygen
To implement dynamic injection, is recommended to create a directive with the following name:
#inject-hygen-tmpl!
[!NOTE] The creation of this directive varies for each editor
This directive will the responsible to remove .hygen
from the file name and
use the rest of the file name to retrieve the parser
to be used for dynamic
injection. See implementations for more details.
[!WARNING] Ignore dynamic injection for
*.ejs.hygen
,*.erb.hygen
and*.hygen.hygen
files to avoid weird behaviours
Once created, add it to the end of injections.scm
file that will be used by
the editor:
; dynamic injection
((content) @injection.content
(#inject-hygen-tmpl! "")
(#set! injection.combined))
FAQs
Hygen Template grammar for tree-sitter
We found that tree-sitter-hygen-template demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.