Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the multiple filetype issue #23

Closed
wants to merge 1 commit into from
Closed

Fix the multiple filetype issue #23

wants to merge 1 commit into from

Conversation

dannywillems
Copy link

As said in the #19 , the plugin doesn't work if we use combined filetype such as php.html. This fixes this issue. The idea given in #19 is used.

" are supported.
let l:filetype_supported=0
for l:current_ft in split(&filetype, "\\.")
if get(g:mta_filetypes, l:current_ft, 1)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the logic to allow tag matching if a filetype is not found. For instance, the cpp filetype will have filetype_supported set to 1 because the default in get() is now 1.

@Valloric
Copy link
Owner

No response from PR author, closing.

@Valloric Valloric closed this Oct 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants