view runtime/autoload/modula2.vim @ 34217:0f125612fd33 v9.1.0057

patch 9.1.0057: MS-Windows: Key event test still fails Commit: https://github.com/vim/vim/commit/6a02eb073e1c801a5a92837d4b2d44b6a80afddd Author: Christian Brabandt <cb@256bit.org> Date: Thu Jan 25 22:28:37 2024 +0100 patch 9.1.0057: MS-Windows: Key event test still fails Problem: MS-Windows: Key event test still fails Solution: Skip testing CTRL-C, since it causes an Interrupt which causes a test failure (after 9.1.0053) Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 25 Jan 2024 22:45: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: