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.13.0 to 0.13.1

28

grammar.js

@@ -676,10 +676,10 @@ const PREC = {

char_literal: $ => token(seq(
char_literal: $ => seq(
'\'',
choice(
seq(optional('\\'), /[^']/),
seq('\\', '\'')
$.escape_sequence,
/[^\n']/
),
'\''
)),
),

@@ -691,8 +691,22 @@ concatenated_string: $ => seq(

string_literal: $ => token(seq(
string_literal: $ => seq(
'"',
repeat(choice(/[^\\"\n]/, /\\./)),
'"')
repeat(choice(
token(prec(1, /[^\\"\n]/)),
$.escape_sequence
)),
'"'
),
escape_sequence: $ => token(seq(
'\\',
choice(
/[^xuU]/,
/\d{2,3}/,
/x[0-9a-fA-F]{2,}/,
/u[0-9a-fA-F]{4}/,
/U[0-9a-fA-F]{8}/
)
)),
system_lib_string: $ => token(seq(

@@ -699,0 +713,0 @@ '<',

{
"name": "tree-sitter-c",
"version": "0.13.0",
"version": "0.13.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