mirror of
https://github.com/neovim/neovim.git
synced 2026-01-03 01:46:31 +10:00
vim-patch:9.1.1268: filetype: dax files are not recognized
Problem: filetype: dax files are not recognized
Solution: detect "*.dax" as dax filetype, include dax filetype and
syntax plugin (Anarion Dunedain)
Data Analysis Expressions (DAX) is a formula expression language used in
Analysis Services, Power BI, and Power Pivot in Excel. DAX formulas
include functions, operators, and values to perform advanced
calculations and queries on data in related tables and columns in
tabular data models.
DAX language overview:
- https://learn.microsoft.com/en-us/dax/dax-overview
closes: vim/vim#17035
7f518e044f
Co-authored-by: Anarion Dunedain <anarion80@gmail.com>
This commit is contained in:
committed by
Christian Clason
parent
18caa5fb23
commit
5cdfa3324f
16
runtime/ftplugin/dax.vim
Normal file
16
runtime/ftplugin/dax.vim
Normal file
@@ -0,0 +1,16 @@
|
||||
" Vim filetype plugin
|
||||
" Language: Data Analysis Expressions (DAX)
|
||||
" Maintainer: Anarion Dunedain <anarion80@gmail.com>
|
||||
" Last Change: 2025 Apr 2
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
||||
|
||||
setlocal commentstring=//\ %s
|
||||
|
||||
let b:undo_ftplugin = 'setl com< cms<'
|
||||
Reference in New Issue
Block a user