New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tree-sitter-kotlin

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tree-sitter-kotlin - npm Package Compare versions

Comparing version 0.3.6 to 0.3.7

26

grammar.js

@@ -121,3 +121,3 @@ /*

$._string_end,
$._string_content,
$.string_content,
],

@@ -171,7 +171,9 @@

"import",
$.identifier,
optional(choice(seq(".*"), $.import_alias)),
alias($._import_identifier, $.identifier),
optional(choice(seq(".", $.wildcard_import), $.import_alias)),
$._semi
),
wildcard_import: _ => token.immediate("*"),
import_alias: $ => seq("as", alias($.simple_identifier, $.type_identifier)),

@@ -248,5 +250,7 @@

binding_pattern_kind: $ => choice("val", "var"),
class_parameter: $ => seq(
optional($.modifiers),
optional(choice("val", "var")),
optional($.binding_pattern_kind),
$.simple_identifier,

@@ -369,3 +373,3 @@ ":",

optional($.modifiers),
choice("val", "var"),
$.binding_pattern_kind,
optional($.type_parameters),

@@ -769,3 +773,3 @@ optional(seq($._receiver_type, optional('.'))),

$._string_start,
repeat(choice($._string_content, $._interpolation)),
repeat(choice($.string_content, $._interpolation)),
$._string_end,

@@ -1107,2 +1111,9 @@ ),

// Adapted from tree-sitter-java, helps to avoid a conflic with
// wildcard_import node while being compatible with identifier
_import_identifier: $ => choice(
$.simple_identifier,
seq($._import_identifier, ".", $.simple_identifier),
),
// ====================

@@ -1184,4 +1195,3 @@ // Lexical grammar

choice($.integer_literal, $.hex_literal, $.bin_literal),
/[uU]/,
optional("L")
/[uU]L?/
),

@@ -1188,0 +1198,0 @@

{
"name": "tree-sitter-kotlin",
"version": "0.3.6",
"version": "0.3.7",
"description": "Tree-sitter grammar for Kotlin",

@@ -12,4 +12,6 @@ "main": "bindings/node",

"parse": "tree-sitter parse",
"build-wasm": "tree-sitter build-wasm",
"build-wasm": "tree-sitter build --wasm",
"playground": "tree-sitter playground",
"prestart": "npm run build-wasm",
"start": "npm run playground",
"prebuildify": "prebuildify --napi --strip"

@@ -54,3 +56,3 @@ },

"devDependencies": {
"tree-sitter-cli": "^0.22.1",
"tree-sitter-cli": "^0.22.6",
"prebuildify": "^6.0.0"

@@ -57,0 +59,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc