Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tree-sitter-c

Package Overview
Dependencies
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tree-sitter-c - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1

7

corpus/declarations.txt

@@ -138,2 +138,3 @@ ============================================

const char **the_strings;
int const * const restrict x;

@@ -149,3 +150,7 @@ ---

(primitive_type)
(pointer_declarator (pointer_declarator (identifier)))))
(pointer_declarator (pointer_declarator (identifier))))
(declaration
(primitive_type)
(type_qualifier)
(pointer_declarator (type_qualifier) (type_qualifier) (identifier))))

@@ -152,0 +157,0 @@ ============================================

8

grammar.js

@@ -204,6 +204,6 @@ const PREC = {

pointer_declarator: $ => prec.right(seq('*', $._declarator)),
pointer_field_declarator: $ => prec.right(seq('*', $._field_declarator)),
pointer_type_declarator: $ => prec.right(seq('*', $._type_declarator)),
abstract_pointer_declarator: $ => prec.right(seq('*', optional($._abstract_declarator))),
pointer_declarator: $ => prec.right(seq('*', repeat($.type_qualifier), $._declarator)),
pointer_field_declarator: $ => prec.right(seq('*', repeat($.type_qualifier), $._field_declarator)),
pointer_type_declarator: $ => prec.right(seq('*', repeat($.type_qualifier), $._type_declarator)),
abstract_pointer_declarator: $ => prec.right(seq('*', repeat($.type_qualifier), optional($._abstract_declarator))),

@@ -210,0 +210,0 @@ function_declarator: $ => prec(1, seq($._declarator, $.parameter_list)),

{
"name": "tree-sitter-c",
"version": "0.12.0",
"version": "0.12.1",
"description": "C grammar for node-tree-sitter",

@@ -5,0 +5,0 @@ "main": "index.js",

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

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