Socket
Socket
Sign inDemoInstall

lex

Package Overview
Dependencies
0
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.7.8 to 1.7.9

2

bower.json
{
"name": "lexer",
"main": "lexer.js",
"version": "1.7.8",
"version": "1.7.9",
"homepage": "https://github.com/aaditmshah/lexer",

@@ -6,0 +6,0 @@ "authors": [

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

"description": "An elegant armor-plated JavaScript lexer modelled after flex. Easily extensible to tailor to your need for perfection.",
"version": "1.7.8",
"version": "1.7.9",
"keywords": ["lex", "lexer", "lexical", "analysis", "scan", "scanner", "scanning", "token", "tokenize", "tokenizer", "tokenization", "flex", "jison"],

@@ -8,0 +8,0 @@ "main": "lexer.js",

if (typeof module === "object" && typeof module.exports === "object") module.exports = Lexer;
Lexer.defunct = function (char) {
throw new Error("Unexpected character at index " + (this.index - 1) + ": " + char);
Lexer.defunct = function (chr) {
throw new Error("Unexpected character at index " + (this.index - 1) + ": " + chr);
};

@@ -6,0 +6,0 @@

{
"name": "lex",
"description": "An elegant armor-plated JavaScript lexer modelled after flex. Easily extensible to tailor to your need for perfection.",
"version": "1.7.8",
"version": "1.7.9",
"keywords": ["lex", "lexer", "lexical", "analysis", "scan", "scanner", "scanning", "token", "tokenize", "tokenizer", "tokenization", "flex", "jison"],

@@ -6,0 +6,0 @@ "author": "Aadit M Shah (http://aaditmshah.github.com/) <aaditmshah@fastmail.fm>",

@@ -113,3 +113,3 @@ # Lexer #

lexer.addRule(/^[\t ]*/, function (lexeme) {
lexer.addRule(/^[\t ]*/gm, function (lexeme) {
var indentation = lexeme.length;

@@ -116,0 +116,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc