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

antlr-format

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antlr-format - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

7

dist/GrammarFormatter.d.ts

@@ -55,4 +55,9 @@ import { Token } from "antlr4ng";

private lastEntryIs;
private lineHasNonWhitespaceContent;
/**
* Checks if there's no non-whitespace entry between the current pipeline index and the start of the current line.
*
* @returns True if that's the case.
*/
private lineHasLeadingNonWhitespaceContent;
/**
* Skips over all comments and whitespaces backwards and checks the value of the value after that.

@@ -59,0 +64,0 @@ *

4

package.json

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "2.0.2",
"version": "2.0.3",
"description": "A formatter lib for ANTLR4 grammars",

@@ -18,3 +18,3 @@ "type": "module",

"build-watch": "npm run build -- --sourcemap --watch",
"format-grammar-repo": "antlr-format --pattern ../grammars-v4/**/*.g4 --config tests/config.json -a"
"format-grammar-repo": "antlr-format --config tests/config.json -a ../grammars-v4/**/*.g4"
},

@@ -21,0 +21,0 @@ "repository": {

[![Weekly Downloads](https://img.shields.io/npm/dw/antlr-format?style=for-the-badge&color=blue)](https://www.npmjs.com/package/antlr-format)
[![npm version](https://img.shields.io/npm/v/antlr-format?style=for-the-badge&color=yellow)](https://www.npmjs.com/package/antlr-format)
# <img src="https://raw.githubusercontent.com/mike-lischke/antlr-format/master/images/logo.svg" alt="antlr-format" style="width: 128px; height: 128px; vertical-align: bottom">Formatting Your ANTLR4 Grammars
# <img src="https://raw.githubusercontent.com/mike-lischke/antlr-format/master/images/formatter-title.png" alt="antlr-format">

@@ -22,2 +22,8 @@ The `antlr-format` package provides a small library to format your ANTLR4 grammar in a wide variety of ways. It has a companion named `antlr-format-cli` which provides a terminal command for running the formatter in batch files and so on. You can read more about it in its own [Readme](cli/ReadMe.md).

### 2.0.3
- Fixed bug where rule names after block comments where not placed on an own line;
- Added support for colons in blocks, which are optional and may align with alts just like on rule level.
- Added support for rule options, which are formatted like global options.
### 2.0.2

@@ -24,0 +30,0 @@

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

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