mirror of
https://github.com/vim/vim
synced 2025-04-29 21:07:49 +02:00
Problem: filetype: Power Query files are not recognized Solution: detect '*.pq' as pq filetype, include pq syntax and filetype plugin (Anarion Dunedain) Microsoft Power Query provides a powerful data import experience that encompasses many features. Power Query works with desktop Analysis Services, Excel, and Power BI workbooks, in addition to many online services, such as Fabric, Power BI service, Power Apps, Microsoft 365 Customer Insights, and more. A core capability of Power Query is to filter and combine, that is, to mash-up data from one or more of a rich collection of supported data sources. Any such data mashup is expressed using the Power Query M formula language. The M language is a functional, case sensitive language similar to F#. Reference: - Power Query M formula language overview: https://learn.microsoft.com/en-us/powerquery-m/ closes: #17045 Signed-off-by: Anarion Dunedain <anarion80@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
16 lines
330 B
VimL
16 lines
330 B
VimL
" Vim filetype plugin
|
|
" Language: Power Query M
|
|
" Maintainer: Anarion Dunedain <anarion80@gmail.com>
|
|
" Last Change: 2025 Apr 3
|
|
|
|
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<'
|