Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.45 KB | None | 0 0
  1. Index: TextFormatting.cpp
  2. ===================================================================
  3. --- TextFormatting.cpp  (revision 80)
  4. +++ TextFormatting.cpp  (working copy)
  5. @@ -23,8 +23,14 @@
  6.  extern CComPtr<IVsTextManager>     g_textMgr;
  7.  
  8.  static const GUID                  g_cppLangGUID       = { 0xB2F072B0, 0xABC1, 0x11D0, { 0x9D, 0x62, 0x00, 0xC0, 0x4F, 0xD9, 0xDF, 0xD9 } };
  9. +
  10. +//                                                          {694DD9B6   -B865   -4C5B     -AD    85   -86    35    6E    9C    88    DC}
  11.  static const GUID                  g_csharpLangGUID    = { 0x694DD9B6, 0xB865, 0x4C5B, { 0xAD, 0x85, 0x86, 0x35, 0x6E, 0x9C, 0x88, 0xDC } };
  12.  
  13. +//                                                          {21feefb5   -ace1   -4461     -ba    7c   -6f    66    45    74    45    fd}
  14. +static const GUID                  g_uscriptGUID       = { 0x21feefb5, 0xace1, 0x4461, { 0xba, 0x7c, 0x6f, 0x66, 0x45, 0x74, 0x45, 0xfd } };
  15. +
  16. +
  17.  struct Highlight
  18.  {
  19.     unsigned int                start;
  20. @@ -276,7 +282,10 @@
  21.     if( SUCCEEDED(buffer->GetLanguageServiceID(&langPrefs.guidLang)) && SUCCEEDED(g_textMgr->GetUserPreferences(0, 0, &langPrefs, 0)) )
  22.     {
  23.         tabSize = langPrefs.uTabSize;
  24. -       isCppLikeLanguage = InlineIsEqualGUID(langPrefs.guidLang, g_cppLangGUID) || InlineIsEqualGUID(langPrefs.guidLang, g_csharpLangGUID);
  25. +       isCppLikeLanguage = InlineIsEqualGUID(langPrefs.guidLang, g_cppLangGUID) ||
  26. +                           InlineIsEqualGUID(langPrefs.guidLang, g_csharpLangGUID) ||
  27. +                           InlineIsEqualGUID(langPrefs.guidLang, g_uscriptGUID);
  28. +
  29.         if(langPrefs.fWordWrap)
  30.         {
  31.             long min, max, pageWidth, pos;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement