class Rouge::Lexers::Julia
Constants
- BUILTINS
- KEYWORDS
- OPERATORS
- PUNCTUATION
- TYPES
NOTE: The list of types was generated automatically using the following script: using Pkg, InteractiveUtils
allnames = [names(Core); names(Base, imported=true)]
for stdlib in readdir(Pkg.Types.stdlib_dir())
mod = Symbol(basename(stdlib)) @eval begin using $mod append!(allnames, names($mod)) end
end
sort!(unique!(allnames))
i = 1 for sym in allnames
global i # needed at the top level, e.g. in the REPL isdefined(Main, sym) || continue getfield(which(Main, sym), sym) isa Type || continue sym === :(=>) && continue # Actually an alias for Pair print("| ", sym) i % 3 == 0 ? println() : print(" ") # print 3 to a line i += 1
end
Public Class Methods
detect?(text)
click to toggle source
Documentation: docs.julialang.org/en/v1/manual/variables/#Allowed-Variable-Names-1
# File lib/rouge/lexers/julia.rb, line 15 def self.detect?(text) return true if text.shebang? 'julia' end