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

tree-sitter-c

Package Overview
Dependencies
Maintainers
4
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.13.11 to 0.13.12

39

grammar.js

@@ -603,2 +603,3 @@ const PREC = {

$._type_specifier,
repeat($.type_qualifier),
optional($._abstract_declarator)

@@ -665,10 +666,32 @@ ),

number_literal: $ => token(seq(
choice(
/\d+('\d+)*(\.\d+('\d+)*)?/,
seq('0x', /[0-9a-fA-f]+/),
seq('0b', /[01]+/)
),
repeat(choice('u', 'l', 'U', 'L', 'f', 'F'))
)),
number_literal: $ => {
const separator = "'";
const hex = /[0-9a-fA-F]/;
const decimal = /[0-9]/;
const hexDigits = seq(repeat1(hex), repeat(seq(separator, repeat1(hex))));
const decimalDigits = seq(repeat1(decimal), repeat(seq(separator, repeat1(decimal))));
return token(seq(
optional(/[-\+]/),
optional(choice('0x', '0b')),
choice(
seq(
choice(
decimalDigits,
seq('0b', decimalDigits),
seq('0x', hexDigits)
),
optional(seq('.', optional(hexDigits)))
),
seq('.', decimalDigits)
),
optional(seq(
/[eEpP]/,
optional(seq(
optional(/[-\+]/),
hexDigits
))
)),
repeat(choice('u', 'l', 'U', 'L', 'f', 'F'))
))
},

@@ -675,0 +698,0 @@ char_literal: $ => seq(

{
"name": "tree-sitter-c",
"version": "0.13.11",
"version": "0.13.12",
"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