A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sheerun/vim-polyglot/commit/b4868c7ea7b75dd09a6d172871c901905f5d539a below:

Add comments for some extensions + test · sheerun/vim-polyglot@b4868c7 · GitHub

File tree Expand file treeCollapse file tree 10 files changed

+185

-188

lines changed

Filter options

Expand file treeCollapse file tree 10 files changed

+185

-188

lines changed Original file line number Diff line number Diff line change

@@ -7,7 +7,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cpp-modern') ==

7 7

" http://www.vim.org/scripts/script.php?script_id=3064

8 8

" Maintainer: bfrg <bfrg@users.noreply.github.com>

9 9

" Website: https://github.com/bfrg/vim-cpp-modern

10 -

" Last Change: Mar 14, 2020

10 +

" Last Change: Oct 4, 2020

11 11

"

12 12

" Extended C syntax highlighting including highlighting of user-defined

13 13

" functions.

@@ -17,7 +17,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cpp-modern') ==

17 17

" ==============================================================================

18 18 19 19 20 -

" Highlight some additional keywords in the comments

20 +

" Highlight additional keywords in the comments

21 21

syn keyword cTodo contained BUG NOTE

22 22 23 23

@@ -50,25 +50,4 @@ if get(g:, 'cpp_simple_highlight', 0)

50 50

hi link cLabel Statement

51 51

endif

52 52 53 - 54 -

" Operators

55 -

" syn match cOperator "\(<<\|>>\|[-+*/%&^|<>!=]\)="

56 -

" syn match cOperator "<<\|>>\|&&\|||\|++\|--\|->"

57 -

" syn match cOperator "[.!~*&%<>^|=,+-]"

58 -

" syn match cOperator "/[^/*=]"me=e-1

59 -

" syn match cOperator "/$"

60 -

" syn match cOperator "&&\|||"

61 -

" syn match cOperator "[][]"

62 - 63 -

" Preprocessor

64 -

" syn keyword cDefined defined contained containedin=cDefine

65 -

" hi def link cDefined cDefine

66 - 67 -

" Delimiters

68 -

" syn match cDelimiter "[();\\]"

69 -

" hi def link cDelimiter Delimiter

70 -

" foldmethod=syntax fix, courtesy of Ivan Freitas

71 -

" syn match cBraces display "[{}]"

72 -

" hi def link cBraces Delimiter

73 - 74 53

endif

Original file line number Diff line number Diff line change

@@ -36,7 +36,7 @@ let s:tags = '\%(' . join(graphql#javascript_tags(), '\|') . '\)'

36 36 37 37

if graphql#has_syntax_group('jsTemplateExpression')

38 38

" pangloss/vim-javascript

39 -

exec 'syntax region graphqlTemplateString start=+' . s:tags . '\@20<=`+ skip=+\\\\\|\\`+ end=+`+ contains=@GraphQLSyntax,jsTemplateExpression,jsSpecial extend'

39 +

exec 'syntax region graphqlTemplateString matchgroup=jsTemplateString start=+' . s:tags . '\@20<=`+ skip=+\\\\\|\\`+ end=+`+ contains=@GraphQLSyntax,jsTemplateExpression,jsSpecial extend'

40 40

exec 'syntax match graphqlTaggedTemplate +' . s:tags . '\ze`+ nextgroup=graphqlTemplateString'

41 41

syntax region graphqlTemplateExpression start=+${+ end=+}+ contained contains=jsTemplateExpression containedin=graphqlFold keepend

42 42

@@ -48,7 +48,7 @@ if graphql#has_syntax_group('jsTemplateExpression')

48 48

syn cluster graphqlTaggedTemplate add=graphqlTemplateString

49 49

elseif graphql#has_syntax_group('javaScriptStringT')

50 50

" runtime/syntax/javascript.vim

51 -

exec 'syntax region graphqlTemplateString start=+' . s:tags . '\@20<=`+ skip=+\\\\\|\\`+ end=+`+ contains=@GraphQLSyntax,javaScriptSpecial,javaScriptEmbed,@htmlPreproc extend'

51 +

exec 'syntax region graphqlTemplateString matchgroup=javaScriptStringT start=+' . s:tags . '\@20<=`+ skip=+\\\\\|\\`+ end=+`+ contains=@GraphQLSyntax,javaScriptSpecial,javaScriptEmbed,@htmlPreproc extend'

52 52

exec 'syntax match graphqlTaggedTemplate +' . s:tags . '\ze`+ nextgroup=graphqlTemplateString'

53 53

syntax region graphqlTemplateExpression start=+${+ end=+}+ contained contains=@javaScriptEmbededExpr containedin=graphqlFold keepend

54 54 Original file line number Diff line number Diff line change

@@ -34,7 +34,7 @@ endif

34 34 35 35

let s:tags = '\%(' . join(graphql#javascript_tags(), '\|') . '\)'

36 36 37 -

exec 'syntax region graphqlTemplateString start=+' . s:tags . '\@20<=`+ skip=+\\`+ end=+`+ contains=@GraphQLSyntax,typescriptTemplateSubstitution extend'

37 +

exec 'syntax region graphqlTemplateString matchgroup=typescriptTemplate start=+' . s:tags . '\@20<=`+ skip=+\\`+ end=+`+ contains=@GraphQLSyntax,typescriptTemplateSubstitution extend'

38 38

exec 'syntax match graphqlTaggedTemplate +' . s:tags . '\ze`+ nextgroup=graphqlTemplateString'

39 39 40 40

" Support expression interpolation ((${...})) inside template strings.

Original file line number Diff line number Diff line change

@@ -53,6 +53,8 @@ Text enclosed between `$anyword$` pairs, where `anyword` is any non-empty

53 53

sequence of word characters different from those with a special meaning (such

54 54

as `$pgsql$`) is treated as a multi-line string.

55 55 56 +

When |foldmethod| is set to "syntax", SQL commands can be folded.

57 + 56 58

Finally, the plugin supports syntax highlighting of arbitrary languages within

57 59

procedure and function blocks. This feature needs to be configured: see

58 60

|g:pgsql_pl|.

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4