Rename Cretonne to Cranelift!

This commit is contained in:
Dan Gohman
2018-07-13 09:01:28 -07:00
parent 19a636af96
commit f4dbd38a4c
306 changed files with 977 additions and 975 deletions

View File

@@ -0,0 +1 @@
au BufRead,BufNewFile *.clif set filetype=clif

View File

@@ -1 +0,0 @@
au BufRead,BufNewFile *.cton set filetype=cton

44
misc/vim/syntax/clif.vim Normal file
View File

@@ -0,0 +1,44 @@
" Vim syntax file
" Language: Cranelift
" Maintainer: Jakob Stoklund Olesen <stoklund@2pi.dk
" Last Change: Jun 16, 2017
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
" Disable spell checking even in comments.
" They tend to refer to weird stuff like assembler mnemonics anyway.
syn spell notoplevel
syn keyword clifHeader test isa set
syn keyword clifDecl function jump_table incoming_arg outgoing_arg spill_slot explicit_slot emergency_slot
syn keyword clifFilecheck check sameln nextln unordered not regex contained
syn match clifType /\<\([bif]\d\+\(x\d\+\)\?\)\|[if]flags\>/
syn match clifEntity /\<\(v\|ss\|jt\|fn\|sig\)\d\+\>/
syn match clifLabel /\<ebb\d+\>/
syn match clifName /%\w\+\>/
syn match clifNumber /-\?\<[0-9_]\+\>/
syn match clifNumber /-\?\<0x[0-9a-fA-F_]\+\(\.[0-9a-fA-F_]*\)\?\(p[+-]\?\d\+\)\?\>/
syn match clifHexSeq /#\x\+\>/
syn match clifSourceLoc /@[0-9a-f]\+\>/
syn region clifCommentLine start=";" end="$" contains=clifFilecheck
hi def link clifHeader Keyword
hi def link clifDecl Keyword
hi def link clifType Type
hi def link clifEntity Identifier
hi def link clifLabel Label
hi def link clifName String
hi def link clifNumber Number
hi def link clifHexSeq Number
hi def link clifCommentLine Comment
hi def link clifFilecheck SpecialComment
hi def link clifSourceLoc LineNr
let b:current_syntax = "clif"

View File

@@ -1,44 +0,0 @@
" Vim syntax file
" Language: Cretonne
" Maintainer: Jakob Stoklund Olesen <stoklund@2pi.dk
" Last Change: Jun 16, 2017
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
" Disable spell checking even in comments.
" They tend to refer to weird stuff like assembler mnemonics anyway.
syn spell notoplevel
syn keyword ctonHeader test isa set
syn keyword ctonDecl function jump_table incoming_arg outgoing_arg spill_slot explicit_slot emergency_slot
syn keyword ctonFilecheck check sameln nextln unordered not regex contained
syn match ctonType /\<\([bif]\d\+\(x\d\+\)\?\)\|[if]flags\>/
syn match ctonEntity /\<\(v\|ss\|jt\|fn\|sig\)\d\+\>/
syn match ctonLabel /\<ebb\d+\>/
syn match ctonName /%\w\+\>/
syn match ctonNumber /-\?\<[0-9_]\+\>/
syn match ctonNumber /-\?\<0x[0-9a-fA-F_]\+\(\.[0-9a-fA-F_]*\)\?\(p[+-]\?\d\+\)\?\>/
syn match ctonHexSeq /#\x\+\>/
syn match ctonSourceLoc /@[0-9a-f]\+\>/
syn region ctonCommentLine start=";" end="$" contains=ctonFilecheck
hi def link ctonHeader Keyword
hi def link ctonDecl Keyword
hi def link ctonType Type
hi def link ctonEntity Identifier
hi def link ctonLabel Label
hi def link ctonName String
hi def link ctonNumber Number
hi def link ctonHexSeq Number
hi def link ctonCommentLine Comment
hi def link ctonFilecheck SpecialComment
hi def link ctonSourceLoc LineNr
let b:current_syntax = "cton"