mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
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>
17 lines
348 B
VimL
17 lines
348 B
VimL
" 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<'
|