Skip to content

Added indentation #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions indent/mojo.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
" include python indent file
runtime indent/python.vim
4 changes: 3 additions & 1 deletion syntax/mojo.vim
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ syn keyword mojoStatement lambda nonlocal pass return with yield
syn keyword mojoStatement class def nextgroup=mojoFunction skipwhite
syn keyword mojoStatement struct fn trait nextgroup=mojoFunction skipwhite
syn keyword mojoStatement alias var let
syn keyword mojoStatement inout owned borrowed
syn keyword mojoStatement inout owned borrowed
syn keyword mojoConditional elif else if
syn keyword mojoRepeat for while
syn keyword mojoOperator and in is not or
syn keyword mojoException except finally raise try
syn keyword mojoInclude from import self
syn keyword mojoAsync async await
syn keyword mojoModifier raises capturing escaping

" Soft keywords
" These keywords do not mean anything unless used in the right context.
Expand Down Expand Up @@ -225,6 +226,7 @@ hi def link mojoExceptions Structure
hi def link mojoSpaceError Error
hi def link mojoDoctest Special
hi def link mojoDoctestValue Define
hi def link mojoModifier Statement

let b:current_syntax = "mojo"

Expand Down