Compare commits
3 Commits
278ec88944
...
951c3bcebe
Author | SHA1 | Date | |
---|---|---|---|
951c3bcebe | |||
f57429613a | |||
7e976ccc6f |
2
LICENSE
2
LICENSE
@ -1,4 +1,4 @@
|
||||
Copyright (C) 2020 Dan Buch
|
||||
Copyright (C) 2021 Dan Buch
|
||||
|
||||
MIT License
|
||||
|
||||
|
BIN
rustbook/hello_world/main
Executable file
BIN
rustbook/hello_world/main
Executable file
Binary file not shown.
@ -1,54 +0,0 @@
|
||||
#!/usr/bin/env oh-no
|
||||
|
||||
set shell := ["python", "-c"]
|
||||
set something
|
||||
|
||||
alias d := dogs
|
||||
|
||||
export HOTDOGPARTY := hats
|
||||
|
||||
now_ish := `print("oh gee")` + `print(sum([1, 2, 5]))`
|
||||
|
||||
an_string := "sit ready \"for reals\" 'uh huh' {{an_raw_string + '{{what' }}"
|
||||
|
||||
an_raw_string := 'sit ready "wow" {{not_gonna}}'
|
||||
|
||||
hats := '''
|
||||
very serious hat's
|
||||
'''
|
||||
|
||||
wats := """
|
||||
{{an_string}} \"yay\" 'ok'
|
||||
|
||||
{{ 'dog' + just_executable()}}
|
||||
|
||||
{{justfile()}}
|
||||
|
||||
{{justfile_directory()}}
|
||||
|
||||
{{arch()}} {{os()}}
|
||||
"""
|
||||
|
||||
serious_business := ```
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import datetime
|
||||
|
||||
print(f"home: {os.environ.get("HOME", "?")}")
|
||||
print(f"now-ish: {datetime.datetime.now()}")
|
||||
```
|
||||
|
||||
dogs: aminal manimal _secret
|
||||
|
||||
# show the aminal by kind
|
||||
aminal kind='dog':
|
||||
#!/usr/bin/env python
|
||||
import sys
|
||||
import os
|
||||
print('\n'.join(os.environ.keys()), file=sys.stderr)
|
||||
|
||||
_secret +WHATEVER='OK':
|
||||
@print("don't tell anyone {{WHATEVER}}")
|
||||
|
||||
manimal:
|
||||
@print('wow')
|
@ -1 +0,0 @@
|
||||
autocmd BufReadPost justfile,*.justfile setfiletype just
|
@ -1,80 +0,0 @@
|
||||
" Vim syntax file
|
||||
" Language: Just Command Runner
|
||||
" Maintainer: Dan Buch <dan@meatballhat.com>
|
||||
" Latest Revision: 28 May 2021
|
||||
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
let b:shell_syntax = "sh"
|
||||
if exists("g:just_shell_syntax")
|
||||
let b:shell_syntax = g:just_shell_syntax
|
||||
endif
|
||||
|
||||
exe "syn include @setshellsyntax syntax/" . b:shell_syntax . ".vim"
|
||||
|
||||
syn keyword justKeyword alias export if else set
|
||||
|
||||
syn keyword justFunction arch os os_family
|
||||
syn keyword justFunction env_var env_var_or_default invocation_directory
|
||||
syn keyword justFunction justfile justfile_directory just_executable
|
||||
|
||||
syn keyword justSetting shell export dotenv-load positional-arguments
|
||||
|
||||
syn match justOperator "\v:"
|
||||
syn match justOperator "\v\)"
|
||||
syn match justOperator "\v\("
|
||||
syn match justOperator "\v\+"
|
||||
syn match justOperator "\v\@"
|
||||
syn match justOperator "\v\="
|
||||
syn match justOperator "\v:\="
|
||||
|
||||
syn match justQuote '\v"'
|
||||
syn match justQuote "\v'"
|
||||
syn match justQuote '\v"""'
|
||||
syn match justQuote "\v'''"
|
||||
|
||||
syn match justBacktick "\v\`"
|
||||
syn match justBacktick "\v\`\`\`"
|
||||
|
||||
syn match justCurlyBrace "\v\{\{"
|
||||
syn match justCurlyBrace "\v\}\}"
|
||||
|
||||
syn match justComment "\v#.*$"
|
||||
|
||||
syn match justShebang "\v^ *#!.*$"
|
||||
|
||||
syn match justPublicName "\v[a-zA-Z][_a-zA-Z0-9-]*[a-zA-Z0-9_]"
|
||||
syn match justPrivateName "\v_[a-zA-Z0-9][_a-zA-Z0-9-]*[a-zA-Z0-9_]"
|
||||
|
||||
syn region justCurlyBraced matchgroup=justCurlyBrace start="\v\{\{" skip="\v\\\{" end="\v\}\}" contains=justKeyword,justFunction,justOperator,justQuote,justString,justRawString
|
||||
|
||||
syn region justString matchgroup=justQuote start='\v"' skip='\v\\"' end='\v"' contains=justCurlyBraced
|
||||
syn region justString matchgroup=justQuote start='\v"""' skip='\v\\"' end='\v"""' contains=justCurlyBraced
|
||||
|
||||
syn region justRawString matchgroup=justQuote start="\v'" end="\v'"
|
||||
syn region justRawString matchgroup=justQuote start="\v'''" end="\v'''"
|
||||
|
||||
syn region justSubshell matchgroup=justBacktick start="\v\`" skip="\v\\\`" end="\v\`" contains=@setshellsyntax
|
||||
syn region justSubshell matchgroup=justBacktick start="\v\`\`\`" skip="\v\\\`" end="\v\`\`\`" contains=@setshellsyntax
|
||||
syn region justRecipeBody start="\v^ *" end="$" keepend contains=@setshellsyntax
|
||||
syn region justRecipeNoechoBody start="\v^ *\@" end="$" keepend contains=justOperator,@setshellsyntax
|
||||
|
||||
hi def link justPublicName Constant
|
||||
hi def link justPrivateName Constant
|
||||
hi def link justKeyword Keyword
|
||||
hi def link justSetting Keyword
|
||||
hi def link justOperator Operator
|
||||
hi def link justComment Comment
|
||||
hi def link justShebang PreProc
|
||||
hi def link justFunction Function
|
||||
hi def link justQuote String
|
||||
hi def link justString String
|
||||
hi def link justRawString String
|
||||
hi def link justCurlyBrace Keyword
|
||||
hi def link justBacktick Special
|
||||
|
||||
let b:current_syntax = "just"
|
||||
|
||||
" vim:expandtab:ts=2:sts=2
|
Loading…
Reference in New Issue
Block a user