Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/prism.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

# The Prism Ruby parser.
#
Expand Down
1 change: 1 addition & 0 deletions lib/prism/desugar_compiler.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

module Prism
class DesugarAndWriteNode # :nodoc:
Expand Down
1 change: 1 addition & 0 deletions lib/prism/ffi.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown
# typed: ignore

# This file is responsible for mirroring the API provided by the C extension by
Expand Down
1 change: 1 addition & 0 deletions lib/prism/lex_compat.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

require "delegate"
require "ripper"
Expand Down
3 changes: 3 additions & 0 deletions lib/prism/node_ext.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# frozen_string_literal: true
# :markup: markdown

#--
# Here we are reopening the prism module to provide methods on nodes that aren't
# templated and are meant as convenience methods.
#++
module Prism
class Node
def deprecated(*replacements) # :nodoc:
Expand Down
2 changes: 2 additions & 0 deletions lib/prism/pack.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# frozen_string_literal: true
# :markup: markdown
# typed: ignore

#
module Prism
# A parser for the pack template language.
module Pack
Expand Down
1 change: 1 addition & 0 deletions lib/prism/parse_result.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

module Prism
# This represents a source of Ruby code that has been parsed. It is used in
Expand Down
1 change: 1 addition & 0 deletions lib/prism/parse_result/comments.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

module Prism
class ParseResult < Result
Expand Down
1 change: 1 addition & 0 deletions lib/prism/parse_result/errors.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

require "stringio"

Expand Down
1 change: 1 addition & 0 deletions lib/prism/parse_result/newlines.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

module Prism
class ParseResult < Result
Expand Down
1 change: 1 addition & 0 deletions lib/prism/pattern.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

module Prism
# A pattern is an object that wraps a Ruby pattern matching expression. The
Expand Down
1 change: 1 addition & 0 deletions lib/prism/relocation.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

module Prism
# Prism parses deterministically for the same input. This provides a nice
Expand Down
1 change: 1 addition & 0 deletions lib/prism/string_query.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

module Prism
# Query methods that allow categorizing strings based on their context for
Expand Down
1 change: 1 addition & 0 deletions lib/prism/translation.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

module Prism
# This module is responsible for converting the prism syntax tree into other
Expand Down
1 change: 1 addition & 0 deletions lib/prism/translation/parser.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

begin
required_version = ">= 3.3.7.2"
Expand Down
1 change: 1 addition & 0 deletions lib/prism/translation/parser/builder.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

module Prism
module Translation
Expand Down
1 change: 1 addition & 0 deletions lib/prism/translation/parser/compiler.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

module Prism
module Translation
Expand Down
1 change: 1 addition & 0 deletions lib/prism/translation/parser/lexer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

require "strscan"
require_relative "../../polyfill/append_as_bytes"
Expand Down
1 change: 1 addition & 0 deletions lib/prism/translation/parser33.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

module Prism
module Translation
Expand Down
1 change: 1 addition & 0 deletions lib/prism/translation/parser34.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

module Prism
module Translation
Expand Down
1 change: 1 addition & 0 deletions lib/prism/translation/parser35.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

module Prism
module Translation
Expand Down
2 changes: 2 additions & 0 deletions lib/prism/translation/parser_current.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# frozen_string_literal: true
# :markup: markdown
# typed: ignore

#
module Prism
module Translation
case RUBY_VERSION
Expand Down
1 change: 1 addition & 0 deletions lib/prism/translation/ripper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

require "ripper"

Expand Down
1 change: 1 addition & 0 deletions lib/prism/translation/ripper/sexp.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
# :markup: markdown

require_relative "../ripper"

Expand Down
Loading