module JSON::Next

Constants

BACKTICK_ML_QUOTE

quotes

CLANG_COMMENT

note: *? is NON-greedy

CLANG_ML_COMMENT

comments

DOUBLE_QUOTE
IDENTIFIER
IDENTIFIER_EXTENDED

note: allow extra chars for identifier (extended)

e.g. allow dash (-) e.g:
  babel-preset-es2015
  core-js
  cross-spawn
  eslint-config-jquery
and others
KEYWORDS

note: use [#] instead of # to avoid confusion with # comment in regex

MAJOR
MINOR
ML_ESCAPE_MAP
PATCH
SHELL_COMMENT

note: check if . incl. newlines too (only in multi-line (m) option - why? why not??

note: *? is NON-greedy
SINGLE_QUOTE

todo/fix - check if [^`] includes/matches newline too (yes)? – add n for multi-line!

TRAILING_COMMA
UNESCAPE_MAP
VERSION

Public Class Methods

banner() click to toggle source
root() click to toggle source
# File lib/json/next/version.rb, line 19
def self.root
  "#{File.expand_path( File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) )}"
end
version() click to toggle source
# File lib/json/next/version.rb, line 11
def self.version
  VERSION
end