Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8401921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:55:29+00:00 2026-06-09T21:55:29+00:00

I know that normal script tags can’t self close , and I know less

  • 0

I know that normal script tags can’t self close, and I know less of vimscript than I might. I have been working with a custom XML templating language quite similar to HTML, and have been using the HTML mode along with the file ~/.vim/after/syntax/html.vim:

syn region javaScript start=+<is:PageComponents:Script[^>]*>+ keepend end=+</is:PageComponents:Script>+me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlScriptTag,@htmlPreproc
syn region htmlScriptTag contained start=+<is:PageComponents:Script+ end=+>+ contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent

The problem that I am experiencing is “spillover” of the highlighting region until the end of the file or the next closing script tag.

I have attempted changing start to: +<is:PageComponents:Script[^>]*\(\\\)\@<!>+, and +<is:PageComponents:Script[^>]*[^\\]>+, neither of which make a difference. As far as I understand regexes, the negative lookbehind should have been an ideal solution, and the one character match should have forced the greedy star to back off one character, resulting in failure. Replacing the * with \{-} for ungreedy behavior has the same result. What am I missing?

In case it’s relevant, I’m running vim in Cygwin’s mintty (type is xterm-256color), shell is bash, color scheme is solarized.

Edit: Adding sample of our markup language

<is:PageComponents:Template title="Page Title" controller="controller">
    <is:PageComponents:Script src="/path/jsfile.js" />
    <is:PageComponents:Style src="cssfile.css" />
    <is:Containers:Box label="Box Label">
        <is:DataGridComponents:DataGrid id="data_grid_id" data_provider="data_provider" keep_state="true">
            <is:DataGridComponents:DataGridHeader />
            <is:DataGridComponents:Columns strip_placeholders="false" id="%%id%%_row">
                <is:DataGridComponents:Column header_title="Links Header">
                    <span class="popup-link popup-link-type1" id="type1_%%id%%">Type 1</span> |
                    <span class="popup-link popup-link-type2" id="type2_%%id%%">Type 2</span>
                </is:DataGridComponents:Column>
                <is:DataGridComponents:Column header_title="Data1">%%data1%%</is:DataGridComponents:Column>
                <is:DataGridComponents:Column header_title="Data2">%%data2%%</is:DataGridComponents:Column>
            </is:DataGridComponents:Columns>
            <is:DataGridComponents:DataGridFooter>
                <is:DataGridComponents:Pager id="pager_id" data_provider="pager_data_provider" for_component="data_grid_id" />
                <is:Containers:Box id="footer_box_id" data_provider="footer_box_data_provider">Text: %%data%%</is:containers:box>
            </is:DataGridComponents:DataGridFooter>
        </is:DataGridComponents:DataGrid>
    </is:Containers:Box>
    <is:PageComponents:Script location="onready">
    {literal}
        // Insert literal JavaScript code here for the page
    {/literal}
    </is:PageComponents:Script>
    {include file="path/file1.tpl"}
    {include file="path/file2.tpl"}
</is:PageComponents:Template>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:55:30+00:00Added an answer on June 9, 2026 at 9:55 pm

    Both of my patterns worked correctly when I switched to using / instead of \ in my match.

    The corrected patterns are:
    +<is:PageComponents:Script[^>]*\(/\)\@<!>+ and
    +<is:PageComponents:Script[^>]*[^/]>+.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know what is necessary to create a PHP script that can
then, elif, else statement that I have programmed in a bash script. I know
I have been trying to create a post login script that will change the
i know that django uses unicode strings all over the framework instead of normal
Or any other normal scripting language for that matter. I know there is VBScript
I know that this sort of question has been asked here before, but still
I know that Java have its own garbage collection, but sometimes I want to
I know that I can hijack a form by showing a login form in
I know that immutable objects always have the same state, the state in which
I know that people have had some trouble with undefined CssClass values when using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.