view runtime/indent/bitbake.vim @ 32623:2cd120c9daba v9.0.1643

patch 9.0.1643: filetype detection fails if file name ends in many '~' Commit: https://github.com/vim/vim/commit/c12e4eecbb26cedca96e0810d3501043356eebaa Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 22 12:18:57 2023 +0100 patch 9.0.1643: filetype detection fails if file name ends in many '~' Problem: Filetype detection fails if file name ends in many '~'. Solution: Strip multiple '~' at the same time. (closes https://github.com/vim/vim/issues/12553)
author Bram Moolenaar <Bram@vim.org>
date Thu, 22 Jun 2023 13:30:05 +0200
parents 67f31c24291b
children
line wrap: on
line source

" Vim indent file
" Language:             BitBake
" Copyright:            Copyright (C) 2019 Agilent Technologies, Inc.
" Maintainer:           Chris Laplante <chris.laplante@agilent.com>
" License:              You may redistribute this under the same terms as Vim itself

if exists("b:did_indent")
    finish
endif

runtime! indent/sh.vim

setlocal indentexpr=bitbake#Indent(v:lnum)
setlocal autoindent
setlocal nolisp
setlocal shiftwidth=4
setlocal expandtab
setlocal indentkeys+=<:>,=elif,=except,0=\"

let b:undo_indent .= ' inde< ai< lisp< sw< et< indk<'

let b:did_indent = 1