js uses softtabstop now, java sample added

This commit is contained in:
Chiel92 2013-03-16 11:16:53 +01:00
parent 84772dfde5
commit c73d350fbb
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
if !exists("g:formatprg_cs") | let g:formatprg_cs = "zastyle" | endif if !exists("g:formatprg_cs") | let g:formatprg_cs = "astyle" | endif
if !exists("g:formatprg_args_cs") | let g:formatprg_args_expr_cs = '"--mode=cs --style=ansi -pcHs".&softtabstop' | endif if !exists("g:formatprg_args_cs") | let g:formatprg_args_expr_cs = '"--mode=cs --style=ansi -pcHs".&softtabstop' | endif
if !exists("g:formatprg_c") | let g:formatprg_c = "astyle" | endif if !exists("g:formatprg_c") | let g:formatprg_c = "astyle" | endif
@ -32,5 +32,5 @@ if !exists("g:formatprg_javascript")
endif endif
endif endif
if !exists("g:formatprg_args_javascript") if !exists("g:formatprg_args_javascript")
let g:formatprg_args_javascript = "-i" let g:formatprg_args_expr_javascript = '"-i -s".&softtabstop'
endif endif

1
samples/java.java Normal file
View File

@ -0,0 +1 @@
public class Blastoff{ public static void main(String[] args) { public static void countdown(int n, int m) { if (n == 0) { System.out.println("Blastoff!"); } else { System.out.println(n); countdown(n - 1); } } }}