view runtime/autoload/modula2.vim @ 34209:9ec1021cc7f1 v9.1.0053

patch 9.1.0053: MS-Windows: Key event test still fails Commit: https://github.com/vim/vim/commit/12b927767213502469284bc133f69b4d0da776cb Author: Christian Brabandt <cb@256bit.org> Date: Thu Jan 25 21:23:22 2024 +0100 patch 9.1.0053: MS-Windows: Key event test still fails Problem: MS-Windows: Key event test still fails Solution: Catch more interrupts (after 9.1.0051) Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 25 Jan 2024 21:30:02 +0100
parents ff27442e7851
children
line wrap: on
line source

" Vim filetype plugin file
" Language:	Modula-2
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2024 Jan 04

" Dialect can be one of pim, iso, r10
function modula2#GetDialect() abort

  if exists("b:modula2.dialect")
    return b:modula2.dialect
  endif

  if exists("g:modula2_default_dialect")
    let dialect = g:modula2_default_dialect
  else
    let dialect = "pim"
  endif

  return dialect
endfunction

function modula2#SetDialect(dialect, extension = "") abort
  if exists("b:modula2")
    unlockvar! b:modula2
  endif

  let b:modula2 = #{ dialect: a:dialect, extension: a:extension }
  lockvar! b:modula2
endfunction

" vim: nowrap sw=2 sts=2 ts=8 noet fdm=marker: