Author Topic: spurious beautify error  (Read 473 times)

Graeme

  • Senior Community Member
  • Posts: 2747
  • Hero Points: 340
spurious beautify error
« on: August 01, 2021, 11:56:35 pm »
Beautify gets a spurious error for this slick c code.  For the very last closing brace it says "unexpected right brace, possible missing ;"

Code: [Select]
_menu xmenu1 {
   "Set diff region", "xset_diff_region", "","","";
   "Compare diff region", "xcompare_diff_region", "","","";
   "Beautify project", "xbeautify_project", "","","";
   "Diff last two buffers", "diff_last_two_buffers", "","","";

   "--","","","","";
   "&New temporary file", "xtemp_new_temporary_file", "","","";
   submenu "More","","","" {
      "Search cplusplus.com", "search_cpp_ref", "", "", "";
      "Search devdocs", "search_devdocs_cpp", "", "", "";
      "New temporary file no keep", "xtemp_new_temporary_file_no_keep", "","","";
      "Start xtemp file handler","start_xtemp_files_handler","","","";
      "Stop xtemp file handler","stop_xtemp_files_handler","","","";
      "xnotepad cur line","xnotepad","","","";
      "xnotepad cur word","xnotepad_word","","","";
   }
   "--","","","","";
   "Transpose chars","transpose-chars","","","";
   "Transpose words","transpose-words","","","";
   "Transpose lines","transpose-lines","","","";
   "Append word to clipboard", "xappend_word_to_clipboard","","","";
   submenu "Copy names ","","","" {
      "Copy cur buffer name to clipboard","xcurbuf-name-to-clip","","","";
      "Copy cur buffer path+name to clipboard","xcurbuf-path-to-clip","","","";
      "Copy active project name to clipboard","xproject_name_to_clip","","","";
   }
   submenu "Key bindings ","","","" {
      "Show key family","xkey_binding_trainer","","","";
      "Show all key family","xkey_bindings_show","","","";
      "Find source code for command","find_key_binding","","","";
      "Key bindings dialog","gui_keybindings","","","";
   }
   "--","","","","";
   "Alternate last 2 buffers","alternate_buffers","","","";
   "Float &1","xfloat1","","","";
   "Float &2","xfloat2","","","";
   "Float &3","xfloat3","","","";
   submenu "Set float","","","" {
      "Float &1","xset_float1","","","";
      "Float &2","xset_float2","","","";
      "Float &3","xset_float3","","","";
   }
   "Save app layout","xsave_named_toolwindow_layout","","","";
   "Restore app layout","xload_named_toolwindow_layout","","","";

   #if __VERSION__  >=  23
   "Save session","save_named_state","","","";
   "Restore session","load_named_state","","","";
   #endif

   "--","","","","";

   submenu "&Bookmarks","","","" {
      "&Save bookmarks","xsave_bookmarks","","","";
      "&Restore bookmarks","xrestore_bookmarks","","","";
      "Save bookmarks and clear","xsave_and_clear_bookmarks","","","";
      "Clear and restore bookmarks","xclear_and_restore_bookmarks","","","";
   }

   submenu "Com&plete","","","" {
      "complete-prev-no-dup","complete_prev_no_dup","","","";
      "complete-next-no-dup","complete_next_no_dup","","","";
      "complete-prev","complete_prev","","","";
      "complete-next","complete_next","","","";
      "complete-list","complete_list","","","";
      "complete-more","complete_more","","","";
   }

   submenu "&Select / Hide","","","" {
      "select code block","select_code_block","","","";
      "select paren","select_paren_block","","","";
      "select procedure", "select_proc", "","","";
      "hide code block","hide_code_block","","","";
      "hide selection","hide_selection","","","";
      "hide comments","hide_all_comments","","","";
      "show all","show-all","","","";
   }

   submenu "&Open / E&xplore","","open-file or explore folder","" {
      "Open from here","xopen_from_here","","","open from current buffer path";
      "Open from config","xopen_from_config","","","open file from configuration folder";
      "Open vsstack error file","xopvss","","","Open Slick C error file";
      "-","","","","";
      "Explore current buffer","explore_cur_buffer","","","explore folder of current buffer";
      "Explore config folder","explore_config","","","";
      "Explore installation folder", "explore_vslick","","","";
      "Explore docs","explore_docs","","","";
      "Explore project","explore_vpj","","","";
   }

   submenu "&Case conversion","","","" {
      "&Lowcase selection","lowcase-selection","","","";
      "&Upcase selection","upcase-selection","","","";
      "Lowcase word","lowcase-word","","","";
      "Upcase word","upcase-word","","","";
      "Upcase &char","xupcase-char","","","";
      "Lowcase &char","xlowcase-char","","","";
      "Cap &selection","cap-selection", "","","";
   }

}


patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1776
  • Hero Points: 149
Re: spurious beautify error
« Reply #1 on: August 02, 2021, 05:17:22 pm »
That's unexpected, I'll take a look at it.  Thanks for the report.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1776
  • Hero Points: 149
Re: spurious beautify error
« Reply #2 on: August 03, 2021, 02:47:46 pm »
This is fixed for the next beta.