Skip to content

Commit

Permalink
Add dotted versions of all operators for hanging indent.
Browse files Browse the repository at this point in the history
Fixes #56.
  • Loading branch information
non-Jedi committed Nov 12, 2019
1 parent 1fa94a0 commit 7e7e6fc
Showing 1 changed file with 48 additions and 9 deletions.
57 changes: 48 additions & 9 deletions julia-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ This function provides equivalent functionality, but makes no efforts to optimis
(modify-syntax-entry ?? "." table)
(modify-syntax-entry ?$ "." table)
(modify-syntax-entry ?& "." table)
(modify-syntax-entry ?| "." table)
(modify-syntax-entry ?* "." table)
(modify-syntax-entry ?/ "." table)
(modify-syntax-entry ?+ "." table)
Expand Down Expand Up @@ -142,9 +143,10 @@ This function provides equivalent functionality, but makes no efforts to optimis
'( ;; conditional
"?"
;; assignment
"=" ":=" "+=" "-=" "*=" "/=" "//=" ".//=" ".*=" "./=" "\\=" ".\\="
"^=" ".^=" "÷=" ".÷=" "%=" ".%=" "|=" "&=" "$=" "=>" "<<=" ">>="
">>>=" "~" ".+=" ".-="
"=" ":=" "+=" "-=" "*=" "/=" "//=" "\\=" "^=" "÷=" "%=" "|=" "&="
"$=" "=>" "<<=" ">>=" ">>>=" "~"
".=" ".:=" ".+=" ".-=" ".*=" "./=" ".//=" ".\\=" ".^=" ".÷=" ".%=" ".|=" ".&="
".$=" ".=>" ".<<=" ".>>=" ".>>>=" ".~"
;; arrow
"--" "-->" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
Expand All @@ -154,11 +156,19 @@ This function provides equivalent functionality, but makes no efforts to optimis
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "⬿" "" "" "" "" ""
"" "" "" "" "" "" "" ""
".--" ".-->" ".←" ".→" ".↔" ".↚" ".↛" ".↠" ".↣" ".↦" ".↮" ".⇎" ".⇏" ".⇒" ".⇔" ".⇴"
".⇶" ".⇷" ".⇸" ".⇹" ".⇺" ".⇻" ".⇼" ".⇽" ".⇾" ".⇿" ".⟵" ".⟶" ".⟷" ".⟷" ".⟹"
".⟺" ".⟻" ".⟼" ".⟽" ".⟾" ".⟿" ".⤀" ".⤁" ".⤂" ".⤃" ".⤄" ".⤅" ".⤆" ".⤇" ".⤌"
".⤍" ".⤎" ".⤏" ".⤐" ".⤑" ".⤔" ".⤕" ".⤖" ".⤗" ".⤘" ".⤝" ".⤞" ".⤟" ".⤠" ".⥄" ".⥅"
".⥆" ".⥇" ".⥈" ".⥊" ".⥋" ".⥎" ".⥐" ".⥒" ".⥓" ".⥖" ".⥗" ".⥚" ".⥛" ".⥞" ".⥟" ".⥢"
".⥤" ".⥦" ".⥧" ".⥨" ".⥩" ".⥪" ".⥫" ".⥬" ".⥭" ".⥰" ".⧴" ".⬱" ".⬰" ".⬲" ".⬳" ".⬴"
".⬵" ".⬶" ".⬷" ".⬸" ".⬹" ".⬺" ".⬻" ".⬼" ".⬽" ".⬾" ".⬿" ".⭀" ".⭁" ".⭂" ".⭃" ".⭄"
".⭇" ".⭈" ".⭉" ".⭊" ".⭋" ".⭌" ".←" ".→"
;; or and and
"&&" "||"
"&&" "||" ".&&" ".||"
;; comparison
">" "<" ">=" "" "<=" "" "==" "===" "" "!=" "" "!==" "" ".>"
".<" ".>=" ".≥" ".<=" ".≤" ".==" ".!=" ".≠" ".=" ".!" "<:" ">:" ""
">" "<" ">=" "" "<=" "" "==" "===" "" "!=" "" "!==" "" "!" "<:" ">:" ""
".>" ".<" ".>=" ".≥" ".<=" ".≤" ".==" ".===" ".≡" ".!=" ".≠" ".!==" "." ".!" ".<:" ".>:" "."
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
Expand All @@ -175,27 +185,56 @@ This function provides equivalent functionality, but makes no efforts to optimis
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "⪿" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" ""
".∉" ".∋" ".∌" ".⊆" ".⊈" ".⊂" ".⊄" ".⊊" ".∝" ".∊" ".∍" ".∥" ".∦" ".∷" ".∺" ".∻" ".∽"
".∾" ".≁" ".≃" ".≄" ".≅" ".≆" ".≇" ".≈" ".≉" ".≊" ".≋" ".≌" ".≍" ".≎" ".≐" ".≑" ".≒"
".≓" ".≔" ".≕" ".≖" ".≗" ".≘" ".≙" ".≚" ".≛" ".≜" ".≝" ".≞" ".≟" ".≣" ".≦" ".≧" ".≨"
".≩" ".≪" ".≫" ".≬" ".≭" ".≮" ".≯" ".≰" ".≱" ".≲" ".≳" ".≴" ".≵" ".≶" ".≷" ".≸" ".≹"
".≺" ".≻" ".≼" ".≽" ".≾" ".≿" ".⊀" ".⊁" ".⊃" ".⊅" ".⊇" ".⊉" ".⊋" ".⊏" ".⊐" ".⊑" ".⊒"
".⊜" ".⊩" ".⊬" ".⊮" ".⊰" ".⊱" ".⊲" ".⊳" ".⊴" ".⊵" ".⊶" ".⊷" ".⋍" ".⋐" ".⋑" ".⋕" ".⋖"
".⋗" ".⋘" ".⋙" ".⋚" ".⋛" ".⋜" ".⋝" ".⋞" ".⋟" ".⋠" ".⋡" ".⋢" ".⋣" ".⋤" ".⋥" ".⋦" ".⋧"
".⋨" ".⋩" ".⋪" ".⋫" ".⋬" ".⋭" ".⋲" ".⋳" ".⋴" ".⋵" ".⋶" ".⋷" ".⋸" ".⋹" ".⋺" ".⋻" ".⋼"
".⋽" ".⋾" ".⋿" ".⟈" ".⟉" ".⟒" ".⦷" ".⧀" ".⧁" ".⧡" ".⧣" ".⧤" ".⧥" ".⩦" ".⩧" ".⩪" ".⩫"
".⩬" ".⩭" ".⩮" ".⩯" ".⩰" ".⩱" ".⩲" ".⩳" ".⩴" ".⩵" ".⩶" ".⩷" ".⩸" ".⩹" ".⩺" ".⩻" ".⩼"
".⩽" ".⩾" ".⩿" ".⪀" ".⪁" ".⪂" ".⪃" ".⪄" ".⪅" ".⪆" ".⪇" ".⪈" ".⪉" ".⪊" ".⪋" ".⪌" ".⪍"
".⪎" ".⪏" ".⪐" ".⪑" ".⪒" ".⪓" ".⪔" ".⪕" ".⪖" ".⪗" ".⪘" ".⪙" ".⪚" ".⪛" ".⪜" ".⪝" ".⪞"
".⪟" ".⪠" ".⪡" ".⪢" ".⪣" ".⪤" ".⪥" ".⪦" ".⪧" ".⪨" ".⪩" ".⪪" ".⪫" ".⪬" ".⪭" ".⪮" ".⪯"
".⪰" ".⪱" ".⪲" ".⪳" ".⪴" ".⪵" ".⪶" ".⪷" ".⪸" ".⪹" ".⪺" ".⪻" ".⪼" ".⪽" ".⪾" ".⪿" ".⫀"
".⫁" ".⫂" ".⫃" ".⫄" ".⫅" ".⫆" ".⫇" ".⫈" ".⫉" ".⫊" ".⫋" ".⫌" ".⫍" ".⫎" ".⫏" ".⫐" ".⫑"
".⫒" ".⫓" ".⫔" ".⫕" ".⫖" ".⫗" ".⫘" ".⫙" ".⫷" ".⫸" ".⫹" ".⫺" ".⊢" ".⊣"
;; pipe, colon
"|>" "<|" ":" ".."
".|>" ".<|" ".:" "..."
;; plus
"+" "-" "" "" "" "" ".+" ".-" "++" "|" "" "" "$" "" "±" ""
"+" "-" "" "" "" "" "++" "|" "" "" "$" "" "±" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" ""
".+" ".-" ".⊕" ".⊖" ".⊞" ".⊟" ".+" ".-" ".++" ".|" ".∪" ".∨" ".$" ".⊔" "" ".∓"
".∔" ".∸" ".≂" ".≏" ".⊎" ".⊻" ".⊽" ".⋎" ".⋓" ".⧺" ".⧻" ".⨈" ".⨢" ".⨣" ".⨤" ".⨥" ".⨦"
".⨧" ".⨨" ".⨩" ".⨪" ".⨫" ".⨬" ".⨭" ".⨮" ".⨹" ".⨺" ".⩁" ".⩂" ".⩅" ".⩊" ".⩌" ".⩏" ".⩐"
".⩒" ".⩔" ".⩖" ".⩗" ".⩛" ".⩝" ".⩡" ".⩢" ".⩣"
;; bitshift
"<<" ">>" ">>>" ".<<" ".>>" ".>>>"
;; times
"*" "/" "./" "÷" ".÷" "%" "" "" "×" ".%" ".*" "\\"
"*" "/" "/" "÷" "÷" "%" "" "" "×" "%" "*" "\\"
".\\" "&" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "⦿" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" ""
".*" "./" "./" "" "" ".%" ".⋅" ".∘" "" ".%" ".*" ".\\"
".\\" ".&" ".∩" ".∧" ".⊗" ".⊘" ".⊙" ".⊚" ".⊛" ".⊠" ".⊡" ".⊓" ".∗" ".∙" ".∤" ".⅋"
".≀" ".⊼" ".⋄" ".⋆" ".⋇" ".⋉" ".⋊" ".⋋" ".⋌" ".⋏" ".⋒" ".⟑" ".⦸" ".⦼" ".⦾" ".⦿" ".⧶"
".⧷" ".⨇" ".⨰" ".⨱" ".⨲" ".⨳" ".⨴" ".⨵" ".⨶" ".⨷" ".⨸" ".⨻" ".⨼" ".⨽" ".⩀" ".⩃" ".⩄"
".⩋" ".⩍" ".⩎" ".⩑" ".⩓" ".⩕" ".⩘" ".⩚" ".⩜" ".⩞" ".⩟" ".⩠" ".⫛" ".⊍" ".▷" ".⨝" ".⟕"
".⟖" ".⟗"
;; rational
"//" ".//"
;; power
"^" ".^" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"^" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
".^" ".↑" ".↓" ".⇵" ".⟰" ".⟱" ".⤈" ".⤉" ".⤊" ".⤋" ".⤒" ".⤓" ".⥉" ".⥌" ".⥍"
".⥏" ".⥑" ".⥔" ".⥕" ".⥘" ".⥙" ".⥜" ".⥝" ".⥠" ".⥡" ".⥣" ".⥥" ".⥮" ".⥯" ".↑" ".↓"
;; decl, dot
"::" "."))
(regexp-opt '(" #" " \n" "#" "\n"))))
Expand Down

0 comments on commit 7e7e6fc

Please sign in to comment.