-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into tabsidebar
- Loading branch information
Showing
66 changed files
with
1,521 additions
and
455 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ vim9script | |
# Vim functions for file type detection | ||
# | ||
# Maintainer: The Vim Project <https://github.com/vim/vim> | ||
# Last Change: 2024 May 23 | ||
# Last Change: 2025 Jan 11 | ||
# Former Maintainer: Bram Moolenaar <[email protected]> | ||
|
||
# These functions are moved here from runtime/filetype.vim to make startup | ||
|
@@ -32,6 +32,10 @@ enddef | |
# This function checks for the kind of assembly that is wanted by the user, or | ||
# can be detected from the first five lines of the file. | ||
export def FTasm() | ||
# tiasm uses `* commment` | ||
if join(getline(1, 10), "\n") =~ '\%(\%(^\|\n\)\*\|Texas Instruments Incorporated\)' | ||
setf tiasm | ||
endif | ||
# make sure b:asmsyntax exists | ||
if !exists("b:asmsyntax") | ||
b:asmsyntax = "" | ||
|
@@ -433,7 +437,7 @@ export def FThtml() | |
|
||
while n < 40 && n <= line("$") | ||
# Check for Angular | ||
if getline(n) =~ '@\(if\|for\|defer\|switch\)\|\*\(ngIf\|ngFor\|ngSwitch\|ngTemplateOutlet\)\|ng-template\|ng-content\|{{.*}}' | ||
if getline(n) =~ '@\(if\|for\|defer\|switch\)\|\*\(ngIf\|ngFor\|ngSwitch\|ngTemplateOutlet\)\|ng-template\|ng-content' | ||
setf htmlangular | ||
return | ||
endif | ||
|
@@ -1003,6 +1007,14 @@ export def SQL() | |
endif | ||
enddef | ||
|
||
export def FTsa() | ||
if join(getline(1, 4), "\n") =~# '\%(^\|\n\);' | ||
setf tiasm | ||
return | ||
endif | ||
setf sather | ||
enddef | ||
|
||
# This function checks the first 25 lines of file extension "sc" to resolve | ||
# detection between scala and SuperCollider. | ||
# NOTE: We don't check for 'Class : Method', as this can easily be confused | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
" Vim support file to detect file types | ||
" | ||
" Maintainer: The Vim Project <https://github.com/vim/vim> | ||
" Last Change: 2024 Dec 31 | ||
" Last Change: 2025 Jan 08 | ||
" Former Maintainer: Bram Moolenaar <[email protected]> | ||
|
||
" Listen very carefully, I will say this only once | ||
|
@@ -2185,7 +2185,7 @@ au BufNewFile,BufRead [rR]antfile,*.rant,[rR]akefile,*.rake setf ruby | |
au BufNewFile,BufRead *.rs setf rust | ||
au BufNewFile,BufRead Cargo.lock,*/.cargo/config,*/.cargo/credentials setf toml | ||
|
||
" S-lang (or shader language, or SmallLisp) | ||
" S-lang | ||
au BufNewFile,BufRead *.sl setf slang | ||
|
||
" Sage | ||
|
@@ -2200,15 +2200,18 @@ au BufNewFile,BufRead *.sas setf sas | |
" Sass | ||
au BufNewFile,BufRead *.sass setf sass | ||
|
||
" Sather | ||
au BufNewFile,BufRead *.sa setf sather | ||
" Sather, TI linear assembly | ||
au BufNewFile,BufRead *.sa call dist#ft#FTsa() | ||
|
||
" Scala | ||
au BufNewFile,BufRead *.scala setf scala | ||
|
||
" SBT - Scala Build Tool | ||
au BufNewFile,BufRead *.sbt setf sbt | ||
|
||
" Slang Shading Language | ||
au BufNewFile,BufRead *.slang setf shaderslang | ||
|
||
" Slint | ||
au BufNewFile,BufRead *.slint setf slint | ||
|
||
|
Oops, something went wrong.