A guide to highlight phel syntax when using PhpStorm IDE
Go to: Preferences > Editor > File types
- add a new file type for Phel-Lang:
phel
- to this new file type specify the file extension:
*.phel
- specify line comment:
#
- check support paired braces, brackets, parens, string escapes
- provide the keywords in each tab
**
*build-mode*
*compile-mode*
*ns*
->
->>
<
<=
<=>
>
>=
>=<
NAN
all?
and
apply
argv
as->
associative?
binding
bit-and
bit-clear
bit-flip
bit-not
bit-or
bit-set
bit-shift-left
bit-shift-right
bit-test
bit-xor
blank?
boolean?
capitalize
case
coerce-in
comment
comp
compare
compile
complement
concat
cond
cons
contains-value?
contains?
count
create-response-from-map
create-response-from-string
dec
declare
decode
decode-value
deep-merge
def
def-
definterface
definterface*
defmacro
defmacro-
defn
defn-
defstruct
defstruct*
deftest
deref
difference
difference-pair
distinct
do
doctype
dofor
drop
drop-while
emit-response
empty?
encode
encode-value
ends-with?
escape
escape-html
eval
even?
extreme
false?
ffirst
files-from-globals
filter
find
find-index
first
flatten
float?
fn
for
foreach
format
frequencies
full-name
function?
gensym
get
get-in
group-by
hash-map
hash-map?
headers-from-server
html
id
identity
if
if-not
inc
includes?
index-of
indexed?
int?
interleave
interpose
intersection
invert
is
join
juxt
keep
keep-indexed
keys
keyword
keyword?
kvs
last-index-of
let
list
list?
loop
lower-case
map
map-indexed
mapcat
max
mean
merge
merge-with
meta
min
name
namespace
nan?
neg?
next
nfirst
nil?
nnext
not
not=
ns
number?
odd?
one?
or
output?
pairs
partial
partition
peek
persistent
php-array-to-map
php-array?
php-associative-array
php-indexed-array
php-object?
php-resource?
pop
pos?
print
print-str
print-summary
printf
println
push
put
put-in
quote
rand
rand-int
rand-nth
range
raw-string
raw-string?
re-quote-replacement
re-seq
read-string
recur
reduce
reduce2
remove
repeat
replace
replace-first
report
request
request-from-globals
request-from-globals-args
request-from-map
request?
response
response-from-map
response-from-string
response?
rest
reverse
run-tests
second
set
set!
set-meta!
set-var
set?
shuffle
slice
some?
sort
sort-by
split
split-at
split-lines
split-with
starts-with?
str
str-contains?
string?
struct?
successful?
sum
swap!
symbol?
symmetric-difference
take
take-last
take-nth
take-while
throw
thrown-with-msg?
thrown?
to-php-array
transient
tree-seq
trim
trim-newline
triml
trimr
true?
truthy?
try
type
union
unquote
unquote-splicing
unset
update
update-in
uploaded-file
uploaded-file?
upper-case
uri
uri-from-globals
uri-from-string
uri?
valid-key?
values
var
var?
vector
vector?
when
when-not
with-output-buffer
zero?
zipcoll
__DIR__
__FILE__
:
::
:require-file
:require
:refer
:export
:use
:as
@
'
,
`
php/
php/aget
php/apush
php/aset
php/aunset
php/new
php/->
php/::
php/oset